Mercurial > hg > graal-compiler
changeset 9192:123991e4fbd8
removed unused CodeInstaller constructor
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 19 Apr 2013 11:51:20 +0200 |
parents | 700f6a63763a |
children | c8f4e1081c0b |
files | src/share/vm/graal/graalCodeInstaller.cpp |
diffstat | 1 files changed, 0 insertions(+), 19 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/graal/graalCodeInstaller.cpp Fri Apr 19 10:48:36 2013 +0200 +++ b/src/share/vm/graal/graalCodeInstaller.cpp Fri Apr 19 11:51:20 2013 +0200 @@ -351,25 +351,6 @@ GraalCompiler::instance(), _debug_recorder, _dependencies, NULL, -1, false, leaf_graph_ids, installed_code, triggered_deoptimizations); } -// constructor used to create a stub -CodeInstaller::CodeInstaller(Handle& target_method, BufferBlob*& blob, jlong& id) { - No_Safepoint_Verifier no_safepoint; - - _oop_recorder = new OopRecorder(&_arena); - initialize_fields(target_method(), NULL); - assert(_name != NULL, "installMethod needs NON-NULL name"); - - // (very) conservative estimate: each site needs a relocation - GraalCompiler::initialize_buffer_blob(); - CodeBuffer buffer(JavaThread::current()->get_buffer_blob()); - initialize_buffer(buffer); - - const char* cname = java_lang_String::as_utf8_string(_name); - 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 = (jlong)blob->code_begin(); -} - void CodeInstaller::initialize_fields(oop comp_result, methodHandle method) { _comp_result = HotSpotCompilationResult::comp(comp_result); if (!method.is_null()) {