--- old/src/cpu/sparc/vm/stubRoutines_sparc.cpp 2015-11-27 02:24:03.568155205 -0500 +++ new/src/cpu/sparc/vm/stubRoutines_sparc.cpp 2015-11-27 02:24:01.780054635 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -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.");