diff options
| author | 2014-06-09 12:11:20 -0700 | |
|---|---|---|
| committer | 2014-06-11 14:46:13 -0700 | |
| commit | b5a9e3d1cc1fd66683e43e365afc8c900e2800c4 (patch) | |
| tree | 5b259807b4c5c67c532050939458a8390234a7a0 /runtime/debugger.h | |
| parent | 3b95d23f44485d207aa6ef298dc744fa2355578b (diff) | |
Remove Object* weak roots from the debugger.
The weak roots were converted to JNI weak refs.
Since the weak roots are now normal JNI weak refs, we eliminate the
need to insert read barriers for those weak roots in the debugger and
the need for the GC to have a separate step to update them as part of
the system weak sweeping.
Bug: 12687968
Change-Id: If16396d4713457b8af4f1ea6a0c6ec6799cb615e
Diffstat (limited to 'runtime/debugger.h')
| -rw-r--r-- | runtime/debugger.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/runtime/debugger.h b/runtime/debugger.h index 31ffd6e4e5..1cf0b0c421 100644 --- a/runtime/debugger.h +++ b/runtime/debugger.h @@ -41,7 +41,7 @@ class Class; class Object; class Throwable; } // namespace mirror -struct AllocRecord; +class AllocRecord; class Thread; class ThrowLocation; @@ -531,11 +531,6 @@ class Dbg { static size_t HeadIndex() EXCLUSIVE_LOCKS_REQUIRED(alloc_tracker_lock_); static void DumpRecentAllocations() LOCKS_EXCLUDED(alloc_tracker_lock_); - // Updates the stored direct object pointers (called from SweepSystemWeaks). - static void UpdateObjectPointers(IsMarkedCallback* callback, void* arg) - LOCKS_EXCLUDED(alloc_tracker_lock_) - SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); - enum HpifWhen { HPIF_WHEN_NEVER = 0, HPIF_WHEN_NOW = 1, @@ -560,9 +555,6 @@ class Dbg { static void DdmSendHeapSegments(bool native) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); - static void AllowNewObjectRegistryObjects() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); - static void DisallowNewObjectRegistryObjects() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); - private: static void DdmBroadcast(bool connect) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); static void PostThreadStartOrStop(Thread*, uint32_t) |