8147433: PrintNMethods no longer works with JVMCI
Reviewed-by: kvn, twisti
This commit is contained in:
parent
40164313e3
commit
75901ea0cb
@ -420,8 +420,7 @@ void Compilation::install_code(int frame_size) {
|
||||
implicit_exception_table(),
|
||||
compiler(),
|
||||
has_unsafe_access(),
|
||||
SharedRuntime::is_wide_vector(max_vector_size()),
|
||||
directive()
|
||||
SharedRuntime::is_wide_vector(max_vector_size())
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -28,6 +28,7 @@
|
||||
#include "ci/ciEnv.hpp"
|
||||
#include "ci/ciMethodData.hpp"
|
||||
#include "code/exceptionHandlerTable.hpp"
|
||||
#include "compiler/compilerDirectives.hpp"
|
||||
#include "memory/resourceArea.hpp"
|
||||
#include "runtime/deoptimization.hpp"
|
||||
|
||||
|
@ -38,7 +38,6 @@
|
||||
#include "code/scopeDesc.hpp"
|
||||
#include "compiler/compileBroker.hpp"
|
||||
#include "compiler/compileLog.hpp"
|
||||
#include "compiler/compilerDirectives.hpp"
|
||||
#include "compiler/disassembler.hpp"
|
||||
#include "gc/shared/collectedHeap.inline.hpp"
|
||||
#include "interpreter/linkResolver.hpp"
|
||||
@ -959,7 +958,6 @@ void ciEnv::register_method(ciMethod* target,
|
||||
AbstractCompiler* compiler,
|
||||
bool has_unsafe_access,
|
||||
bool has_wide_vectors,
|
||||
DirectiveSet* directives,
|
||||
RTMState rtm_state) {
|
||||
VM_ENTRY_MARK;
|
||||
nmethod* nm = NULL;
|
||||
@ -1041,11 +1039,6 @@ void ciEnv::register_method(ciMethod* target,
|
||||
code_buffer->free_blob();
|
||||
|
||||
if (nm != NULL) {
|
||||
bool printnmethods = directives->PrintAssemblyOption || directives->PrintNMethodsOption;
|
||||
if (printnmethods || PrintDebugInfo || PrintRelocations || PrintDependencies || PrintExceptionHandlers) {
|
||||
nm->print_nmethod(printnmethods);
|
||||
}
|
||||
|
||||
nm->set_has_unsafe_access(has_unsafe_access);
|
||||
nm->set_has_wide_vectors(has_wide_vectors);
|
||||
#if INCLUDE_RTM_OPT
|
||||
|
@ -32,11 +32,9 @@
|
||||
#include "code/dependencies.hpp"
|
||||
#include "code/exceptionHandlerTable.hpp"
|
||||
#include "compiler/oopMap.hpp"
|
||||
#include "compiler/compilerDirectives.hpp"
|
||||
#include "runtime/thread.hpp"
|
||||
|
||||
class CompileTask;
|
||||
class DirectiveSet;
|
||||
|
||||
// ciEnv
|
||||
//
|
||||
@ -372,7 +370,6 @@ public:
|
||||
AbstractCompiler* compiler,
|
||||
bool has_unsafe_access,
|
||||
bool has_wide_vectors,
|
||||
DirectiveSet* directives,
|
||||
RTMState rtm_state = NoRTM);
|
||||
|
||||
|
||||
|
@ -1884,7 +1884,6 @@ void CompileBroker::invoke_compiler_on_method(CompileTask* task) {
|
||||
|
||||
post_compile(thread, task, event, !ci_env.failing(), &ci_env);
|
||||
}
|
||||
DirectivesStack::release(directive);
|
||||
pop_jni_handle_block();
|
||||
|
||||
methodHandle method(thread, task->method());
|
||||
@ -1893,6 +1892,15 @@ void CompileBroker::invoke_compiler_on_method(CompileTask* task) {
|
||||
|
||||
collect_statistics(thread, time, task);
|
||||
|
||||
bool printnmethods = directive->PrintAssemblyOption || directive->PrintNMethodsOption;
|
||||
if (printnmethods || PrintDebugInfo || PrintRelocations || PrintDependencies || PrintExceptionHandlers) {
|
||||
nmethod* nm = task->code();
|
||||
if (nm != NULL) {
|
||||
nm->print_nmethod(printnmethods);
|
||||
}
|
||||
}
|
||||
DirectivesStack::release(directive);
|
||||
|
||||
if (PrintCompilation && PrintCompilation2) {
|
||||
tty->print("%7d ", (int) tty->time_stamp().milliseconds()); // print timestamp
|
||||
tty->print("%4d ", compile_id); // print compilation number
|
||||
|
@ -934,7 +934,6 @@ Compile::Compile( ciEnv* ci_env, C2Compiler* compiler, ciMethod* target, int osr
|
||||
compiler,
|
||||
has_unsafe_access(),
|
||||
SharedRuntime::is_wide_vector(max_vector_size()),
|
||||
_directive,
|
||||
rtm_state()
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user