comparison src/share/vm/compiler/compileBroker.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 a3ba776d6ab6
children e6195383bcaf 8a9bb7821e28
comparison
equal deleted inserted replaced
14335:4802ce6fbff6 14341:ad3f8397fe37
953 // in that case. However, since this must work and we do not allow 953 // in that case. However, since this must work and we do not allow
954 // exceptions anyway, check and abort if this fails. 954 // exceptions anyway, check and abort if this fails.
955 955
956 if (compiler_thread == NULL || compiler_thread->osthread() == NULL){ 956 if (compiler_thread == NULL || compiler_thread->osthread() == NULL){
957 vm_exit_during_initialization("java.lang.OutOfMemoryError", 957 vm_exit_during_initialization("java.lang.OutOfMemoryError",
958 "unable to create new native thread"); 958 os::native_thread_creation_failed_msg());
959 } 959 }
960 960
961 java_lang_Thread::set_thread(thread_oop(), compiler_thread); 961 java_lang_Thread::set_thread(thread_oop(), compiler_thread);
962 962
963 // Note that this only sets the JavaThread _priority field, which by 963 // Note that this only sets the JavaThread _priority field, which by