summaryrefslogtreecommitdiffstats
path: root/runtime/object_callbacks.h
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2014-02-18 11:38:45 -0800
committerMathieu Chartier <mathieuc@google.com>2014-02-20 10:00:24 -0800
commit3bb57c7b41bf5419fe895e7aa664d8d430205ba8 (patch)
tree55b28f12c3e5b9174499fe49acec195410880566 /runtime/object_callbacks.h
parenta3537fb03e092a82f08ceb670a2eafa703203465 (diff)
downloadandroid_art-3bb57c7b41bf5419fe895e7aa664d8d430205ba8.tar.gz
android_art-3bb57c7b41bf5419fe895e7aa664d8d430205ba8.tar.bz2
android_art-3bb57c7b41bf5419fe895e7aa664d8d430205ba8.zip
Change ProcessReferences to not use RecursiveMarkObject.
Calling ProcessMarkStack in RecursiveMarkObject caused a lot of overhead due to timing logger splits. Changed the logic to be the same as prior to the reference queue refactoring which involves calling process mark stack after preserving soft references and enqueueing finalizer references. FinalizingGC longest pause is reduced by around 1/2 down to ~300ms. Benchmark score ~400000 -> ~600000. Also changed the timing logger splits in the GC to have (Paused) if the split is a paused part of the GC. Bug: 12129382 Change-Id: I7476d4f23670b19d70738e2fd48e37ec2f57e9f4
Diffstat (limited to 'runtime/object_callbacks.h')
-rw-r--r--runtime/object_callbacks.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/object_callbacks.h b/runtime/object_callbacks.h
index 6af338bd57..468ba08a43 100644
--- a/runtime/object_callbacks.h
+++ b/runtime/object_callbacks.h
@@ -60,6 +60,7 @@ typedef void (VerifyRootCallback)(const mirror::Object* root, void* arg, size_t
// address the object (if the object didn't move, returns the object input parameter).
typedef mirror::Object* (IsMarkedCallback)(mirror::Object* object, void* arg)
__attribute__((warn_unused_result));
+typedef void (ProcessMarkStackCallback)(void* arg);
} // namespace art