< prev index next >

src/hotspot/share/services/diagnosticCommand.cpp

Print this page
rev 50464 : Thread Dump Extension (memory allocation)

*** 610,626 **** } #endif // INCLUDE_SERVICES ThreadDumpDCmd::ThreadDumpDCmd(outputStream* output, bool heap) : DCmdWithParser(output, heap), ! _locks("-l", "print java.util.concurrent locks", "BOOLEAN", false, "false") { _dcmdparser.add_dcmd_option(&_locks); } void ThreadDumpDCmd::execute(DCmdSource source, TRAPS) { // thread stacks ! VM_PrintThreads op1(output(), _locks.value()); VMThread::execute(&op1); // JNI global handles VM_PrintJNI op2(output()); VMThread::execute(&op2); --- 610,628 ---- } #endif // INCLUDE_SERVICES ThreadDumpDCmd::ThreadDumpDCmd(outputStream* output, bool heap) : DCmdWithParser(output, heap), ! _locks("-l", "print java.util.concurrent locks", "BOOLEAN", false, "false"), ! _extended("-e", "print extended thread information", "BOOLEAN", false, "false") { _dcmdparser.add_dcmd_option(&_locks); + _dcmdparser.add_dcmd_option(&_extended); } void ThreadDumpDCmd::execute(DCmdSource source, TRAPS) { // thread stacks ! VM_PrintThreads op1(output(), _locks.value(), _extended.value()); VMThread::execute(&op1); // JNI global handles VM_PrintJNI op2(output()); VMThread::execute(&op2);
< prev index next >