--- old/src/share/vm/ci/ciEnv.cpp 2015-09-25 16:23:20.146913975 +0200 +++ new/src/share/vm/ci/ciEnv.cpp 2015-09-25 16:23:19.986913981 +0200 @@ -38,7 +38,7 @@ #include "code/scopeDesc.hpp" #include "compiler/compileBroker.hpp" #include "compiler/compileLog.hpp" -#include "compiler/compilerOracle.hpp" +#include "compiler/compilerDirectives.hpp" #include "gc/shared/collectedHeap.inline.hpp" #include "interpreter/linkResolver.hpp" #include "memory/allocation.inline.hpp" @@ -101,7 +101,6 @@ _dependencies = NULL; _failure_reason = NULL; _compilable = MethodCompilable; - _break_at_compile = false; _compiler_data = NULL; #ifndef PRODUCT assert(!firstEnv, "not initialized properly"); @@ -161,7 +160,6 @@ _dependencies = NULL; _failure_reason = NULL; _compilable = MethodCompilable_never; - _break_at_compile = false; _compiler_data = NULL; #ifndef PRODUCT assert(firstEnv, "must be first"); @@ -956,9 +954,9 @@ ExceptionHandlerTable* handler_table, ImplicitExceptionTable* inc_table, AbstractCompiler* compiler, - int comp_level, bool has_unsafe_access, bool has_wide_vectors, + DirectiveSet* dirset, RTMState rtm_state) { VM_ENTRY_MARK; nmethod* nm = NULL; @@ -1034,11 +1032,20 @@ debug_info(), dependencies(), code_buffer, frame_words, oop_map_set, handler_table, inc_table, - compiler, comp_level); + compiler, task()->comp_level()); + // Free codeBlobs code_buffer->free_blob(); if (nm != NULL) { + bool printnmethods = dirset->PrintAssemblyOption || dirset->PrintNMethodsOption; + if (printnmethods || PrintDebugInfo || PrintRelocations || PrintDependencies || PrintExceptionHandlers) { + nm->print_nmethod(printnmethods); + } + if (dirset->PrintAssemblyOption) { + Disassembler::decode(nm); + } + nm->set_has_unsafe_access(has_unsafe_access); nm->set_has_wide_vectors(has_wide_vectors); #if INCLUDE_RTM_OPT @@ -1069,7 +1076,7 @@ char *method_name = method->name_and_sig_as_C_string(); ttyLocker ttyl; tty->print_cr("Installing method (%d) %s ", - comp_level, + task()->comp_level(), method_name); } // Allow the code to be executed @@ -1080,7 +1087,7 @@ char *method_name = method->name_and_sig_as_C_string(); ttyLocker ttyl; tty->print_cr("Installing osr method (%d) %s @ %d", - comp_level, + task()->comp_level(), method_name, entry_bci); }