--- a/src/hotspot/share/prims/jni.cpp Wed Apr 10 21:21:31 2019 +0000
+++ b/src/hotspot/share/prims/jni.cpp Wed Apr 10 17:31:31 2019 -0400
@@ -3971,7 +3971,7 @@
#endif
// Since this is not a JVM_ENTRY we have to set the thread state manually before leaving.
- ThreadStateTransition::transition_and_fence(thread, _thread_in_vm, _thread_in_native);
+ ThreadStateTransition::transition(thread, _thread_in_vm, _thread_in_native);
} else {
// If create_vm exits because of a pending exception, exit with that
// exception. In the future when we figure out how to reclaim memory,
@@ -4073,7 +4073,7 @@
res = JNI_OK;
return res;
} else {
- ThreadStateTransition::transition_and_fence(thread, _thread_in_vm, _thread_in_native);
+ ThreadStateTransition::transition(thread, _thread_in_vm, _thread_in_native);
res = JNI_ERR;
return res;
}
@@ -4195,7 +4195,7 @@
// using ThreadStateTransition::transition, we do a callback to the safepoint code if
// needed.
- ThreadStateTransition::transition_and_fence(thread, _thread_in_vm, _thread_in_native);
+ ThreadStateTransition::transition(thread, _thread_in_vm, _thread_in_native);
// Perform any platform dependent FPU setup
os::setup_fpu();