mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +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
|
@ -2875,10 +2875,10 @@ JVM_ENTRY(void, JVM_StartThread(JNIEnv* env, jobject jthread))
|
|||
if (JvmtiExport::should_post_resource_exhausted()) {
|
||||
JvmtiExport::post_resource_exhausted(
|
||||
JVMTI_RESOURCE_EXHAUSTED_OOM_ERROR | JVMTI_RESOURCE_EXHAUSTED_THREADS,
|
||||
"unable to create new native thread");
|
||||
os::native_thread_creation_failed_msg());
|
||||
}
|
||||
THROW_MSG(vmSymbols::java_lang_OutOfMemoryError(),
|
||||
"unable to create new native thread");
|
||||
os::native_thread_creation_failed_msg());
|
||||
}
|
||||
|
||||
Thread::start(native_thread);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue