Skip to content

Commit a90b33a

Browse files
committed
8266573: Make sure blackholes are tagged for all JVMCI paths
Reviewed-by: never
1 parent 2dcbedf commit a90b33a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hotspot/share/jvmci/jvmciEnv.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,11 +988,12 @@ JVMCIObject JVMCIEnv::get_jvmci_method(const methodHandle& method, JVMCI_TRAPS)
988988
return method_object;
989989
}
990990

991+
CompilerOracle::tag_blackhole_if_possible(method);
992+
991993
JavaThread* THREAD = JVMCI::compilation_tick(JavaThread::current());
992994
jmetadata handle = _runtime->allocate_handle(method);
993995
jboolean exception = false;
994996
if (is_hotspot()) {
995-
CompilerOracle::tag_blackhole_if_possible(method);
996997
JavaValue result(T_OBJECT);
997998
JavaCallArguments args;
998999
args.push_long((jlong) handle);

0 commit comments

Comments
 (0)