hotspot/src/share/vm/runtime/interfaceSupport.hpp
changeset 34633 2a6c7c7b30a7
parent 34285 0b07014c15e9
child 35492 c8c0273e6b91
--- a/hotspot/src/share/vm/runtime/interfaceSupport.hpp	Fri Dec 04 04:29:31 2015 +0000
+++ b/hotspot/src/share/vm/runtime/interfaceSupport.hpp	Fri Dec 04 04:06:37 2015 -0500
@@ -562,7 +562,7 @@
 #define JVM_ENTRY_NO_ENV(result_type, header)                        \
 extern "C" {                                                         \
   result_type JNICALL header {                                       \
-    JavaThread* thread = (JavaThread*)ThreadLocalStorage::thread();  \
+    JavaThread* thread = JavaThread::current();                      \
     ThreadInVMfromNative __tiv(thread);                              \
     debug_only(VMNativeEntryWrapper __vew;)                          \
     VM_ENTRY_BASE(result_type, header, thread)