--- old/src/hotspot/share/runtime/thread.cpp 2020-01-16 03:31:08.183546612 +0000 +++ new/src/hotspot/share/runtime/thread.cpp 2020-01-16 03:31:06.617509169 +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);