diff options
Diffstat (limited to 'runtime/debugger.cc')
-rw-r--r-- | runtime/debugger.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/runtime/debugger.cc b/runtime/debugger.cc index 9b5b84a548..099cadc07d 100644 --- a/runtime/debugger.cc +++ b/runtime/debugger.cc @@ -944,7 +944,7 @@ JDWP::JdwpError Dbg::GetContendedMonitor(JDWP::ObjectId thread_id, JDWP::JdwpError Dbg::GetInstanceCounts(const std::vector<JDWP::RefTypeId>& class_ids, std::vector<uint64_t>* counts) { gc::Heap* heap = Runtime::Current()->GetHeap(); - heap->CollectGarbage(/* clear_soft_references */ false, gc::GcCause::kGcCauseDebugger); + heap->CollectGarbage(/* clear_soft_references= */ false, gc::GcCause::kGcCauseDebugger); VariableSizedHandleScope hs(Thread::Current()); std::vector<Handle<mirror::Class>> classes; counts->clear(); @@ -965,7 +965,7 @@ JDWP::JdwpError Dbg::GetInstances(JDWP::RefTypeId class_id, int32_t max_count, std::vector<JDWP::ObjectId>* instances) { gc::Heap* heap = Runtime::Current()->GetHeap(); // We only want reachable instances, so do a GC. - heap->CollectGarbage(/* clear_soft_references */ false, gc::GcCause::kGcCauseDebugger); + heap->CollectGarbage(/* clear_soft_references= */ false, gc::GcCause::kGcCauseDebugger); JDWP::JdwpError error; ObjPtr<mirror::Class> c = DecodeClass(class_id, &error); if (c == nullptr) { @@ -975,7 +975,7 @@ JDWP::JdwpError Dbg::GetInstances(JDWP::RefTypeId class_id, int32_t max_count, std::vector<Handle<mirror::Object>> raw_instances; Runtime::Current()->GetHeap()->GetInstances(hs, hs.NewHandle(c), - /* use_is_assignable_from */ false, + /* use_is_assignable_from= */ false, max_count, raw_instances); for (size_t i = 0; i < raw_instances.size(); ++i) { @@ -987,7 +987,7 @@ JDWP::JdwpError Dbg::GetInstances(JDWP::RefTypeId class_id, int32_t max_count, JDWP::JdwpError Dbg::GetReferringObjects(JDWP::ObjectId object_id, int32_t max_count, std::vector<JDWP::ObjectId>* referring_objects) { gc::Heap* heap = Runtime::Current()->GetHeap(); - heap->CollectGarbage(/* clear_soft_references */ false, gc::GcCause::kGcCauseDebugger); + heap->CollectGarbage(/* clear_soft_references= */ false, gc::GcCause::kGcCauseDebugger); JDWP::JdwpError error; ObjPtr<mirror::Object> o = gRegistry->Get<mirror::Object*>(object_id, &error); if (o == nullptr) { @@ -3075,7 +3075,7 @@ void Dbg::PostException(mirror::Throwable* exception_object) { Handle<mirror::Throwable> h_exception(handle_scope.NewHandle(exception_object)); std::unique_ptr<Context> context(Context::Create()); CatchLocationFinder clf(self, h_exception, context.get()); - clf.WalkStack(/* include_transitions */ false); + clf.WalkStack(/* include_transitions= */ false); JDWP::EventLocation exception_throw_location; SetEventLocation(&exception_throw_location, clf.GetThrowMethod(), clf.GetThrowDexPc()); JDWP::EventLocation exception_catch_location; @@ -3734,7 +3734,7 @@ class ScopedDebuggerThreadSuspension { bool timed_out; ThreadList* const thread_list = Runtime::Current()->GetThreadList(); suspended_thread = thread_list->SuspendThreadByPeer(thread_peer, - /* request_suspension */ true, + /* request_suspension= */ true, SuspendReason::kForDebugger, &timed_out); } @@ -4745,7 +4745,7 @@ class HeapChunkContext { REQUIRES_SHARED(Locks::mutator_lock_) { if (ProcessRecord(start, used_bytes)) { uint8_t state = ExamineNativeObject(start); - AppendChunk(state, start, used_bytes + chunk_overhead_, true /*is_native*/); + AppendChunk(state, start, used_bytes + chunk_overhead_, /*is_native=*/ true); startOfNextMemoryChunk_ = reinterpret_cast<char*>(start) + used_bytes + chunk_overhead_; } } @@ -4757,7 +4757,7 @@ class HeapChunkContext { // OLD-TODO: if context.merge, see if this chunk is different from the last chunk. // If it's the same, we should combine them. uint8_t state = ExamineJavaObject(reinterpret_cast<mirror::Object*>(start)); - AppendChunk(state, start, used_bytes + chunk_overhead_, false /*is_native*/); + AppendChunk(state, start, used_bytes + chunk_overhead_, /*is_native=*/ false); startOfNextMemoryChunk_ = reinterpret_cast<char*>(start) + used_bytes + chunk_overhead_; } } |