OSDN Git Service

Change sticky GC ergonomics to use GC throughput.
authorMathieu Chartier <mathieuc@google.com>
Thu, 27 Mar 2014 17:55:04 +0000 (10:55 -0700)
committerMathieu Chartier <mathieuc@google.com>
Thu, 27 Mar 2014 22:24:44 +0000 (15:24 -0700)
commitafe4998fc15b8de093d6b282c9782d7182829e36
treebcb64fa7db43ece36a3e492deab5f9c162d39aa5
parent67ad224199b9902b3e6d85737e03b679d1ab44f9
Change sticky GC ergonomics to use GC throughput.

The old sticky ergonomics used partial/full GC when the bytes until
the footprint limit was < min free. This was suboptimal. The new
sticky GC ergonomics do partial/full GC when the throughput
of the current sticky GC iteration is <= mean throughput of the
partial/full GC.

Total GC time on FormulaEvaluationActions.EvaluateAndApplyChanges.
Before: 26.4s
After: 24.8s
No benchmark score change measured.

Bug: 8788501

Change-Id: I90000305e93fd492a8ef5a06ec9620d830eaf90d
runtime/base/logging.h
runtime/base/timing_logger.cc
runtime/base/timing_logger.h
runtime/gc/collector/garbage_collector.cc
runtime/gc/collector/garbage_collector.h
runtime/gc/heap.cc
runtime/gc/heap.h
runtime/verify_object-inl.h