Mercurial > hg > graal-jvmci-8
comparison src/share/vm/services/attachListener.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 | 44315152d434 |
children | 4ca6dc0799b6 |
comparison
equal
deleted
inserted
replaced
14335:4802ce6fbff6 | 14341:ad3f8397fe37 |
---|---|
530 JavaThread* listener_thread = new JavaThread(&attach_listener_thread_entry); | 530 JavaThread* listener_thread = new JavaThread(&attach_listener_thread_entry); |
531 | 531 |
532 // Check that thread and osthread were created | 532 // Check that thread and osthread were created |
533 if (listener_thread == NULL || listener_thread->osthread() == NULL) { | 533 if (listener_thread == NULL || listener_thread->osthread() == NULL) { |
534 vm_exit_during_initialization("java.lang.OutOfMemoryError", | 534 vm_exit_during_initialization("java.lang.OutOfMemoryError", |
535 "unable to create new native thread"); | 535 os::native_thread_creation_failed_msg()); |
536 } | 536 } |
537 | 537 |
538 java_lang_Thread::set_thread(thread_oop(), listener_thread); | 538 java_lang_Thread::set_thread(thread_oop(), listener_thread); |
539 java_lang_Thread::set_daemon(thread_oop()); | 539 java_lang_Thread::set_daemon(thread_oop()); |
540 | 540 |