equal
deleted
inserted
replaced
360 // JavaThread due to lack of memory. We would have to throw an exception |
360 // JavaThread due to lack of memory. We would have to throw an exception |
361 // in that case. However, since this must work and we do not allow |
361 // in that case. However, since this must work and we do not allow |
362 // exceptions anyway, check and abort if this fails. |
362 // exceptions anyway, check and abort if this fails. |
363 if (signal_thread == NULL || signal_thread->osthread() == NULL) { |
363 if (signal_thread == NULL || signal_thread->osthread() == NULL) { |
364 vm_exit_during_initialization("java.lang.OutOfMemoryError", |
364 vm_exit_during_initialization("java.lang.OutOfMemoryError", |
365 "unable to create new native thread"); |
365 os::native_thread_creation_failed_msg()); |
366 } |
366 } |
367 |
367 |
368 java_lang_Thread::set_thread(thread_oop(), signal_thread); |
368 java_lang_Thread::set_thread(thread_oop(), signal_thread); |
369 java_lang_Thread::set_priority(thread_oop(), NearMaxPriority); |
369 java_lang_Thread::set_priority(thread_oop(), NearMaxPriority); |
370 java_lang_Thread::set_daemon(thread_oop()); |
370 java_lang_Thread::set_daemon(thread_oop()); |