diff options
Diffstat (limited to 'runtime/debugger.cc')
| -rw-r--r-- | runtime/debugger.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/debugger.cc b/runtime/debugger.cc index 7136c67b6f..8c8a3556da 100644 --- a/runtime/debugger.cc +++ b/runtime/debugger.cc @@ -4039,7 +4039,11 @@ void Dbg::DdmSendHeapSegments(bool native) { // Send a series of heap segment chunks. HeapChunkContext context((what == HPSG_WHAT_MERGED_OBJECTS), native); if (native) { +#ifdef USE_DLMALLOC dlmalloc_inspect_all(HeapChunkContext::HeapChunkCallback, &context); +#else + UNIMPLEMENTED(WARNING) << "Native heap inspection is only supported with dlmalloc"; +#endif } else { gc::Heap* heap = Runtime::Current()->GetHeap(); const std::vector<gc::space::ContinuousSpace*>& spaces = heap->GetContinuousSpaces(); |