src/hotspot/share/prims/jni.cpp
changeset 52302 912b79d983d9
parent 51996 84743156e780
child 52396 e292e94b448a
equal deleted inserted replaced
52301:fbfcdc5bf694 52302:912b79d983d9
  4130   // Set correct safepoint info. The thread is going to call into Java when
  4130   // Set correct safepoint info. The thread is going to call into Java when
  4131   // initializing the Java level thread object. Hence, the correct state must
  4131   // initializing the Java level thread object. Hence, the correct state must
  4132   // be set in order for the Safepoint code to deal with it correctly.
  4132   // be set in order for the Safepoint code to deal with it correctly.
  4133   thread->set_thread_state(_thread_in_vm);
  4133   thread->set_thread_state(_thread_in_vm);
  4134   thread->record_stack_base_and_size();
  4134   thread->record_stack_base_and_size();
       
  4135   thread->register_thread_stack_with_NMT();
  4135   thread->initialize_thread_current();
  4136   thread->initialize_thread_current();
  4136 
  4137 
  4137   if (!os::create_attached_thread(thread)) {
  4138   if (!os::create_attached_thread(thread)) {
  4138     thread->smr_delete();
  4139     thread->smr_delete();
  4139     return JNI_ERR;
  4140     return JNI_ERR;