diff options
| -rw-r--r-- | runtime/gc/collector/concurrent_copying.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/runtime/gc/collector/concurrent_copying.cc b/runtime/gc/collector/concurrent_copying.cc index 6984c1624f..c7d2e9f2c9 100644 --- a/runtime/gc/collector/concurrent_copying.cc +++ b/runtime/gc/collector/concurrent_copying.cc @@ -412,6 +412,11 @@ void ConcurrentCopying::MarkingPhase() { // the mark stack here once again. ProcessMarkStack(); CheckEmptyMarkQueue(); + if (kVerboseMode) { + LOG(INFO) << "AllowNewSystemWeaks"; + } + Runtime::Current()->AllowNewSystemWeaks(); + IssueEmptyCheckpoint(); // Disable marking. if (kUseTableLookupReadBarrier) { heap_->rb_table_->ClearAll(); @@ -419,10 +424,6 @@ void ConcurrentCopying::MarkingPhase() { } is_mark_queue_push_disallowed_.StoreSequentiallyConsistent(1); is_marking_ = false; - if (kVerboseMode) { - LOG(INFO) << "AllowNewSystemWeaks"; - } - Runtime::Current()->AllowNewSystemWeaks(); CheckEmptyMarkQueue(); } |