diff options
author | Hiroshi Yamauchi <yamauchi@google.com> | 2014-06-09 12:11:20 -0700 |
---|---|---|
committer | Hiroshi Yamauchi <yamauchi@google.com> | 2014-06-11 14:46:13 -0700 |
commit | b5a9e3d1cc1fd66683e43e365afc8c900e2800c4 (patch) | |
tree | 5b259807b4c5c67c532050939458a8390234a7a0 /runtime/runtime.cc | |
parent | 3b95d23f44485d207aa6ef298dc744fa2355578b (diff) | |
download | art-b5a9e3d1cc1fd66683e43e365afc8c900e2800c4.zip art-b5a9e3d1cc1fd66683e43e365afc8c900e2800c4.tar.gz art-b5a9e3d1cc1fd66683e43e365afc8c900e2800c4.tar.bz2 |
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/runtime.cc')
-rw-r--r-- | runtime/runtime.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/runtime/runtime.cc b/runtime/runtime.cc index bcb4eb3..ccf478c 100644 --- a/runtime/runtime.cc +++ b/runtime/runtime.cc @@ -309,7 +309,6 @@ void Runtime::SweepSystemWeaks(IsMarkedCallback* visitor, void* arg) { GetInternTable()->SweepInternTableWeaks(visitor, arg); GetMonitorList()->SweepMonitorList(visitor, arg); GetJavaVM()->SweepJniWeakGlobals(visitor, arg); - Dbg::UpdateObjectPointers(visitor, arg); } bool Runtime::Create(const Options& options, bool ignore_unrecognized) { @@ -1043,14 +1042,12 @@ void Runtime::DisallowNewSystemWeaks() { monitor_list_->DisallowNewMonitors(); intern_table_->DisallowNewInterns(); java_vm_->DisallowNewWeakGlobals(); - Dbg::DisallowNewObjectRegistryObjects(); } void Runtime::AllowNewSystemWeaks() { monitor_list_->AllowNewMonitors(); intern_table_->AllowNewInterns(); java_vm_->AllowNewWeakGlobals(); - Dbg::AllowNewObjectRegistryObjects(); } void Runtime::SetInstructionSet(InstructionSet instruction_set) { |