< prev index next >
src/hotspot/share/services/attachListener.cpp
Print this page
rev 50748 : 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 print_extended_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') {
+ print_extended_info = true;
+ }
+ }
+ }
// thread stacks
! VM_PrintThreads op1(out, print_concurrent_locks, print_extended_info);
VMThread::execute(&op1);
// JNI global handles
VM_PrintJNI op2(out);
VMThread::execute(&op2);
< prev index next >