--- old/src/hotspot/share/services/attachListener.cpp 2018-04-09 14:52:34.336836215 -0400 +++ new/src/hotspot/share/services/attachListener.cpp 2018-04-09 14:52:34.044835646 -0400 @@ -334,7 +334,9 @@ static void attach_listener_thread_entry(JavaThread* thread, TRAPS) { os::set_priority(thread, NearMaxPriority); - thread->record_stack_base_and_size(); + assert(thread == Thread::current(), "Must be"); + assert(thread->stack_base() != NULL && thread->stack_size() > 0, + "Should already setup"); if (AttachListener::pd_init() != 0) { return;