mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8187315: [JVMCI] hosted use of JVMCI can crash VM under -Xint
Reviewed-by: kvn, dlong
This commit is contained in:
parent
614fca959b
commit
40cdb9fd60
4 changed files with 8 additions and 5 deletions
|
@ -1018,7 +1018,7 @@ C2V_VMENTRY(jint, installCode, (JNIEnv *jniEnv, jobject, jobject target, jobject
|
|||
Handle installed_code_handle(THREAD, JNIHandles::resolve(installed_code));
|
||||
Handle speculation_log_handle(THREAD, JNIHandles::resolve(speculation_log));
|
||||
|
||||
JVMCICompiler* compiler = JVMCICompiler::instance(CHECK_JNI_ERR);
|
||||
JVMCICompiler* compiler = JVMCICompiler::instance(true, CHECK_JNI_ERR);
|
||||
|
||||
TraceTime install_time("installCode", JVMCICompiler::codeInstallTimer());
|
||||
bool is_immutable_PIC = HotSpotCompiledCode::isImmutablePIC(compiled_code_handle) > 0;
|
||||
|
@ -1136,7 +1136,7 @@ C2V_VMENTRY(jint, getMetadata, (JNIEnv *jniEnv, jobject, jobject target, jobject
|
|||
C2V_END
|
||||
|
||||
C2V_VMENTRY(void, resetCompilationStatistics, (JNIEnv *jniEnv, jobject))
|
||||
JVMCICompiler* compiler = JVMCICompiler::instance(CHECK);
|
||||
JVMCICompiler* compiler = JVMCICompiler::instance(true, CHECK);
|
||||
CompilerStatistics* stats = compiler->stats();
|
||||
stats->_standard.reset();
|
||||
stats->_osr.reset();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue