Mercurial > hg > truffle
diff src/share/vm/graal/graalCodeInstaller.cpp @ 5275:290b3025b66f
added support for disassembling code after installation (so that the result of patching and relocation can be seen)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 23 Apr 2012 15:49:11 +0200 |
parents | af8958fe5a3a |
children | a53162ca8219 |
line wrap: on
line diff
--- a/src/share/vm/graal/graalCodeInstaller.cpp Mon Apr 23 15:42:30 2012 +0200 +++ b/src/share/vm/graal/graalCodeInstaller.cpp Mon Apr 23 15:49:11 2012 +0200 @@ -297,7 +297,7 @@ } // constructor used to create a stub -CodeInstaller::CodeInstaller(Handle& target_method, jlong& id) { +CodeInstaller::CodeInstaller(Handle& target_method, BufferBlob*& blob, jlong& id) { No_Safepoint_Verifier no_safepoint; _env = CURRENT_ENV; @@ -312,7 +312,7 @@ initialize_buffer(buffer); const char* cname = java_lang_String::as_utf8_string(_name); - BufferBlob* blob = BufferBlob::create(strdup(cname), &buffer); // this is leaking strings... but only a limited number of stubs will be created + blob = BufferBlob::create(strdup(cname), &buffer); // this is leaking strings... but only a limited number of stubs will be created IF_TRACE_graal_3 Disassembler::decode((CodeBlob*) blob); id = VmIds::addStub(blob->code_begin()); }