--- a/hotspot/src/share/vm/prims/jvm.cpp Mon Feb 10 17:49:17 2014 +0100
+++ b/hotspot/src/share/vm/prims/jvm.cpp Tue Feb 11 08:43:17 2014 -0800
@@ -2875,10 +2875,10 @@
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);