hotspot/src/share/vm/runtime/serviceThread.cpp
changeset 22758 c6b6abb73544
parent 17296 68557efd8583
child 25057 f38210f84f8c
--- a/hotspot/src/share/vm/runtime/serviceThread.cpp	Mon Feb 10 17:49:17 2014 +0100
+++ b/hotspot/src/share/vm/runtime/serviceThread.cpp	Tue Feb 11 08:43:17 2014 -0800
@@ -27,6 +27,7 @@
 #include "runtime/javaCalls.hpp"
 #include "runtime/serviceThread.hpp"
 #include "runtime/mutexLocker.hpp"
+#include "runtime/os.hpp"
 #include "prims/jvmtiImpl.hpp"
 #include "services/gcNotifier.hpp"
 #include "services/diagnosticArgument.hpp"
@@ -66,7 +67,7 @@
     // exceptions anyway, check and abort if this fails.
     if (thread == NULL || thread->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(), thread);