< prev index next >

src/hotspot/share/services/attachListener.cpp

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

*** 166,181 **** // Implementation of "threaddump" command - essentially a remote ctrl-break // See also: ThreadDumpDCmd class // static jint thread_dump(AttachOperation* op, outputStream* out) { bool print_concurrent_locks = false; ! if (op->arg(0) != NULL && strcmp(op->arg(0), "-l") == 0) { print_concurrent_locks = true; } // thread stacks ! VM_PrintThreads op1(out, print_concurrent_locks); VMThread::execute(&op1); // JNI global handles VM_PrintJNI op2(out); VMThread::execute(&op2); --- 166,189 ---- // Implementation of "threaddump" command - essentially a remote ctrl-break // See also: ThreadDumpDCmd class // static jint thread_dump(AttachOperation* op, outputStream* out) { bool print_concurrent_locks = false; ! bool extended_thread_info = false; ! if (op->arg(0) != NULL) { ! for (int i = 0; op->arg(0)[i] != 0; ++i) { ! if (op->arg(0)[i] == 'l') { print_concurrent_locks = true; } + if (op->arg(0)[i] == 'e') { + extended_thread_info = true; + } + } + } // thread stacks ! VM_PrintThreads op1(out, print_concurrent_locks, extended_thread_info); VMThread::execute(&op1); // JNI global handles VM_PrintJNI op2(out); VMThread::execute(&op2);
< prev index next >