src/share/vm/prims/jvm.cpp

Print this page

        

*** 2873,2886 **** // No one should hold a reference to the 'native_thread'. delete native_thread; if (JvmtiExport::should_post_resource_exhausted()) { JvmtiExport::post_resource_exhausted( JVMTI_RESOURCE_EXHAUSTED_OOM_ERROR | JVMTI_RESOURCE_EXHAUSTED_THREADS, ! "unable to create new native thread"); } THROW_MSG(vmSymbols::java_lang_OutOfMemoryError(), ! "unable to create new native thread"); } Thread::start(native_thread); JVM_END --- 2873,2886 ---- // No one should hold a reference to the 'native_thread'. delete native_thread; if (JvmtiExport::should_post_resource_exhausted()) { JvmtiExport::post_resource_exhausted( JVMTI_RESOURCE_EXHAUSTED_OOM_ERROR | JVMTI_RESOURCE_EXHAUSTED_THREADS, ! os::native_thread_creation_failed_msg()); } THROW_MSG(vmSymbols::java_lang_OutOfMemoryError(), ! os::native_thread_creation_failed_msg()); } Thread::start(native_thread); JVM_END