Skip to content
Permalink
Browse files
8266573: Make sure blackholes are tagged for all JVMCI paths
Reviewed-by: never
  • Loading branch information
shipilev committed May 6, 2021
1 parent 2dcbedf commit a90b33a95510a040fbb9a093ef5f3b6d4675dc9e
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/hotspot/share/jvmci/jvmciEnv.cpp
@@ -988,11 +988,12 @@ JVMCIObject JVMCIEnv::get_jvmci_method(const methodHandle& method, JVMCI_TRAPS)
return method_object;
}

CompilerOracle::tag_blackhole_if_possible(method);

JavaThread* THREAD = JVMCI::compilation_tick(JavaThread::current());
jmetadata handle = _runtime->allocate_handle(method);
jboolean exception = false;
if (is_hotspot()) {
CompilerOracle::tag_blackhole_if_possible(method);
JavaValue result(T_OBJECT);
JavaCallArguments args;
args.push_long((jlong) handle);

0 comments on commit a90b33a

Please sign in to comment.