hotspot/src/cpu/sparc/vm/stubRoutines_sparc.cpp
changeset 34633 2a6c7c7b30a7
parent 34205 9ec51d30a11e
child 38237 d972e3a2df53
--- a/hotspot/src/cpu/sparc/vm/stubRoutines_sparc.cpp	Fri Dec 04 04:29:31 2015 +0000
+++ b/hotspot/src/cpu/sparc/vm/stubRoutines_sparc.cpp	Fri Dec 04 04:06:37 2015 -0500
@@ -36,7 +36,7 @@
   address _flush_reg_windows();   // in .s file.
   // Flush registers to stack. In case of error we will need to stack walk.
   address bootstrap_flush_windows(void) {
-    Thread* thread = ThreadLocalStorage::get_thread_slow();
+    Thread* thread = Thread::current_or_null();
     // Very early in process there is no thread.
     if (thread != NULL) {
       guarantee(thread->is_Java_thread(), "Not a Java thread.");