--- old/src/share/vm/oops/oopsHierarchy.cpp 2015-11-11 15:13:13.297541754 -0500 +++ new/src/share/vm/oops/oopsHierarchy.cpp 2015-11-11 15:13:11.501440052 -0500 @@ -35,7 +35,7 @@ assert (CheckUnhandledOops, "should only call when CheckUnhandledOops"); if (!Universe::is_fully_initialized()) return; // This gets expensive, which is why checking unhandled oops is on a switch. - Thread* t = ThreadLocalStorage::thread(); + Thread* t = Thread::current_or_null(); if (t != NULL && t->is_Java_thread()) { frame fr = os::current_frame(); // This points to the oop creator, I guess current frame points to caller @@ -48,7 +48,7 @@ assert (CheckUnhandledOops, "should only call when CheckUnhandledOops"); if (!Universe::is_fully_initialized()) return; // This gets expensive, which is why checking unhandled oops is on a switch. - Thread* t = ThreadLocalStorage::thread(); + Thread* t = Thread::current_or_null(); if (t != NULL && t->is_Java_thread()) { t->unhandled_oops()->unregister_unhandled_oop(this); }