Mercurial > hg > truffle
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/utilities/vmError.cpp Tue Nov 20 22:50:44 2012 +0100 +++ b/src/share/vm/utilities/vmError.cpp Wed Nov 21 19:23:43 2012 +0100 @@ -491,6 +491,30 @@ print_bug_submit_message(st, _thread); } +#ifdef GRAAL + STEP(67, "(printing debug scope)" ) + + if (_verbose) { + if (_thread != NULL && _thread->is_Java_thread()) { + JavaThread* javaThread = (JavaThread*) _thread; + DebugScopedValue* ds = javaThread->debug_scope(); + int level = 0; + while (ds != NULL) { + if (level == 0) { + st->cr(); + st->print_cr("--------------- D E B U G S C O P E ---------------"); + st->cr(); + } + st->print("%d: ", level); + ds->print(st); + st->cr(); + ds = ds->parent(); + level++; + } + } + } +#endif + STEP(70, "(printing thread)" ) if (_verbose) {