--- old/src/hotspot/share/runtime/thread.cpp 2020-01-17 22:48:47.487863483 +0000 +++ new/src/hotspot/share/runtime/thread.cpp 2020-01-17 22:48:46.069829818 +0000 @@ -1706,6 +1706,7 @@ _SleepEvent = ParkEvent::Allocate(this); // Setup safepoint state info for this thread ThreadSafepointState::create(this); + _handshake.set_thread(this); debug_only(_java_call_counter = 0);