Skip to content

Commit c163843

Browse files
committed
8319876: Reduce memory consumption of VM_ThreadDump::doit
1 parent 2d791b8 commit c163843

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/hotspot/share/runtime/vmOperations.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ VM_ThreadDump::VM_ThreadDump(ThreadDumpResult* result,
228228
_result = result;
229229
_num_threads = 0; // 0 indicates all threads
230230
_threads = nullptr;
231-
_result = result;
232231
_max_depth = max_depth;
233232
_with_locked_monitors = with_locked_monitors;
234233
_with_locked_synchronizers = with_locked_synchronizers;
@@ -243,7 +242,6 @@ VM_ThreadDump::VM_ThreadDump(ThreadDumpResult* result,
243242
_result = result;
244243
_num_threads = num_threads;
245244
_threads = threads;
246-
_result = result;
247245
_max_depth = max_depth;
248246
_with_locked_monitors = with_locked_monitors;
249247
_with_locked_synchronizers = with_locked_synchronizers;

src/hotspot/share/services/threadService.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ void ThreadStackTrace::dump_stack_at_safepoint(int maxDepth, ObjectMonitorsHasht
695695
RegisterMap::UpdateMap::include,
696696
RegisterMap::ProcessFrames::include,
697697
RegisterMap::WalkContinuation::skip);
698-
698+
ResourceMark rm;
699699
// If full, we want to print both vthread and carrier frames
700700
vframe* start_vf = !full && _thread->is_vthread_mounted()
701701
? _thread->carrier_last_java_vframe(&reg_map)

0 commit comments

Comments
 (0)