--- old/src/share/vm/oops/oopsHierarchy.cpp 2015-11-02 01:35:12.982068697 -0500 +++ new/src/share/vm/oops/oopsHierarchy.cpp 2015-11-02 01:35:11.725998107 -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(); 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(); if (t != NULL && t->is_Java_thread()) { t->unhandled_oops()->unregister_unhandled_oop(this); }