Mercurial > hg > graal-compiler
diff src/share/vm/oops/method.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 | 2cb439954abf |
children | 5d0bb7d52783 |
line wrap: on
line diff
--- a/src/share/vm/oops/method.cpp Tue Nov 20 22:50:44 2012 +0100 +++ b/src/share/vm/oops/method.cpp Wed Nov 21 19:23:43 2012 +0100 @@ -1942,3 +1942,16 @@ guarantee(md == NULL || md->is_methodData(), "should be method data"); } + +#ifdef GRAAL +void DebugScopedMethod::print_on(outputStream* st) { + if (_method != NULL) { + st->print("Method@%p", _method); + char holder[O_BUFLEN]; + char nameAndSig[O_BUFLEN]; + _method->method_holder()->name()->as_C_string(holder, O_BUFLEN); + _method->name_and_sig_as_C_string(nameAndSig, O_BUFLEN); + st->print(" - %s::%s", holder, nameAndSig); + } +} +#endif