comparison src/share/vm/runtime/os.cpp @ 14341:ad3f8397fe37

7182040: volano29 limited by os resource on Linux - need better diagnostic message Summary: Changed message to "unable to create native thread: possibly out of memory or process/resource limits reached" Reviewed-by: dholmes, sla
author iklam
date Tue, 11 Feb 2014 08:43:17 -0800
parents 2c95095271e9
children e8ef156f0bc9
comparison
equal deleted inserted replaced
14335:4802ce6fbff6 14341:ad3f8397fe37
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());