OSDN Git Service

ART: Fix GC pause reporting
authorAndreas Gampe <agampe@google.com>
Mon, 30 Jan 2017 21:15:26 +0000 (13:15 -0800)
committerAndreas Gampe <agampe@google.com>
Tue, 31 Jan 2017 02:07:44 +0000 (18:07 -0800)
commit4934eb1845a2b2535ebe086e906b45535a695a13
tree48483d8d40aa105995245583161a9c45670b1d13
parent8f28bd479af445293474867191a0bf1cf0f08a4f
ART: Fix GC pause reporting

CC doesn't use ScopedPause normally, but that was hidden by it using
it for a debug check. Add a parameter for reporting.

Add explicit marking of the pause in CC. Currently this will conservatively
approximate pause times, as the actual pause is hidden inside ThreadList.

Clean up run-test 908.

Bug: 31684633
Test: m ART_TEST_RUN_TEST_NDEBUG=true test-art-host-run-test-908-gc-start-finish
Change-Id: Ie48af52e1225783b06e2e088c5adf3ef42fb5f64
runtime/gc/collector/concurrent_copying.cc
runtime/gc/collector/garbage_collector.cc
runtime/gc/collector/garbage_collector.h
runtime/gc/heap.cc
test/908-gc-start-finish/gc_callbacks.cc