Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files
8251923: "Invalid JNI handle" assertion failure in JVMCICompiler::for…

Reviewed-by: kvn, dnsimon
  • Loading branch information
nick-arm committed Aug 20, 2020
1 parent f0e5824 commit 52a8e0f8582c505b38de97ada10d2e511000b5d4
Showing 1 changed file with 4 additions and 1 deletion.
@@ -893,8 +893,11 @@ void JVMCIRuntime::initialize_HotSpotJVMCIRuntime(JVMCI_TRAPS) {

// This should only be called in the context of the JVMCI class being initialized
JVMCIObject result = JVMCIENV->call_HotSpotJVMCIRuntime_runtime(JVMCI_CHECK);
result = JVMCIENV->make_global(result);

OrderAccess::storestore(); // Ensure handle is fully constructed before publishing
_HotSpotJVMCIRuntime_instance = result;

_HotSpotJVMCIRuntime_instance = JVMCIENV->make_global(result);
JVMCI::_is_initialized = true;

0 comments on commit 52a8e0f

Please sign in to comment.