mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
7182040: volano29 limited by os resource on Linux - need better diagnostic message
Changed message to "unable to create native thread: possibly out of memory or process/resource limits reached" Reviewed-by: dholmes, sla
This commit is contained in:
parent
dd25d6fed0
commit
7f138c5502
7 changed files with 16 additions and 7 deletions
|
@ -31,6 +31,7 @@
|
|||
#include "runtime/interfaceSupport.hpp"
|
||||
#include "runtime/java.hpp"
|
||||
#include "runtime/javaCalls.hpp"
|
||||
#include "runtime/os.hpp"
|
||||
|
||||
// CopyrightVersion 1.2
|
||||
|
||||
|
@ -206,7 +207,7 @@ SurrogateLockerThread* SurrogateLockerThread::make(TRAPS) {
|
|||
// exceptions anyway, check and abort if this fails.
|
||||
if (res == NULL || res->osthread() == NULL) {
|
||||
vm_exit_during_initialization("java.lang.OutOfMemoryError",
|
||||
"unable to create new native thread");
|
||||
os::native_thread_creation_failed_msg());
|
||||
}
|
||||
java_lang_Thread::set_thread(thread_oop(), res);
|
||||
java_lang_Thread::set_priority(thread_oop(), NearMaxPriority);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue