< prev index next >

src/hotspot/share/services/attachListener.cpp

Print this page

        

@@ -332,11 +332,13 @@
 // to the corresponding function to perform the operation.
 
 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;
   }
   AttachListener::set_initialized();
< prev index next >