changeset 25895 | 03808d9a48b2 |
parent 25719 | ef6312344da2 |
child 26586 | 992efa57514f |
--- a/hotspot/src/share/vm/oops/method.cpp Mon Jul 28 07:31:17 2014 -0700 +++ b/hotspot/src/share/vm/oops/method.cpp Thu Jul 31 00:50:55 2014 +0000 @@ -283,6 +283,13 @@ return bcp; } +address Method::bcp_from(address bcp) const { + if (is_native() && bcp == NULL) { + return code_base(); + } else { + return bcp; + } +} int Method::size(bool is_native) { // If native, then include pointers for native_function and signature_handler