From 308351ada0008b0cbe1a5afc31c302c975554ee4 Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Sun, 15 Jun 2014 12:39:02 -0700 Subject: Change reference processing to use heap references. Removes several SetReferents for updating moved referents. Cleaned up other aspects of the code. Change-Id: Ibcb4d713fadea617efee7e936352ddf77ff4c370 --- runtime/object_callbacks.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'runtime/object_callbacks.h') diff --git a/runtime/object_callbacks.h b/runtime/object_callbacks.h index dd8ce16..d8c1c40 100644 --- a/runtime/object_callbacks.h +++ b/runtime/object_callbacks.h @@ -70,6 +70,11 @@ typedef void (DelayReferenceReferentCallback)(mirror::Class* klass, mirror::Refe // 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)); + +// Returns true if the object in the heap reference is marked, if it is marked and has moved the +// callback updates the heap reference contain the new value. +typedef bool (IsHeapReferenceMarkedCallback)(mirror::HeapReference* object, + void* arg) __attribute__((warn_unused_result)); typedef void (ProcessMarkStackCallback)(void* arg); } // namespace art -- cgit v1.1