comparison src/share/vm/utilities/vmError.cpp @ 6999:679e6584c177

added ScopedDebugValue to add values of interest to hs_err crash logs
author Doug Simon <doug.simon@oracle.com>
date Wed, 21 Nov 2012 19:23:43 +0100
parents bd7a7ce2e264
children 3ac7d10a6572
comparison
equal deleted inserted replaced
6998:49f0841607b7 6999:679e6584c177
489 489
490 if (should_report_bug(_id) && _verbose) { 490 if (should_report_bug(_id) && _verbose) {
491 print_bug_submit_message(st, _thread); 491 print_bug_submit_message(st, _thread);
492 } 492 }
493 493
494 #ifdef GRAAL
495 STEP(67, "(printing debug scope)" )
496
497 if (_verbose) {
498 if (_thread != NULL && _thread->is_Java_thread()) {
499 JavaThread* javaThread = (JavaThread*) _thread;
500 DebugScopedValue* ds = javaThread->debug_scope();
501 int level = 0;
502 while (ds != NULL) {
503 if (level == 0) {
504 st->cr();
505 st->print_cr("--------------- D E B U G S C O P E ---------------");
506 st->cr();
507 }
508 st->print("%d: ", level);
509 ds->print(st);
510 st->cr();
511 ds = ds->parent();
512 level++;
513 }
514 }
515 }
516 #endif
517
494 STEP(70, "(printing thread)" ) 518 STEP(70, "(printing thread)" )
495 519
496 if (_verbose) { 520 if (_verbose) {
497 st->cr(); 521 st->cr();
498 st->print_cr("--------------- T H R E A D ---------------"); 522 st->print_cr("--------------- T H R E A D ---------------");