comparison src/share/vm/runtime/serviceThread.cpp @ 14518:d8041d695d19

Merged with jdk9/dev/hotspot changeset 3812c088b945
author twisti
date Tue, 11 Mar 2014 18:45:59 -0700
parents ad3f8397fe37
children 4ca6dc0799b6
comparison
equal deleted inserted replaced
14141:f97c5ec83832 14518:d8041d695d19
25 #include "precompiled.hpp" 25 #include "precompiled.hpp"
26 #include "runtime/interfaceSupport.hpp" 26 #include "runtime/interfaceSupport.hpp"
27 #include "runtime/javaCalls.hpp" 27 #include "runtime/javaCalls.hpp"
28 #include "runtime/serviceThread.hpp" 28 #include "runtime/serviceThread.hpp"
29 #include "runtime/mutexLocker.hpp" 29 #include "runtime/mutexLocker.hpp"
30 #include "runtime/os.hpp"
30 #include "prims/jvmtiImpl.hpp" 31 #include "prims/jvmtiImpl.hpp"
31 #include "services/gcNotifier.hpp" 32 #include "services/gcNotifier.hpp"
32 #include "services/diagnosticArgument.hpp" 33 #include "services/diagnosticArgument.hpp"
33 #include "services/diagnosticFramework.hpp" 34 #include "services/diagnosticFramework.hpp"
34 35
64 // JavaThread due to lack of memory. We would have to throw an exception 65 // JavaThread due to lack of memory. We would have to throw an exception
65 // in that case. However, since this must work and we do not allow 66 // in that case. However, since this must work and we do not allow
66 // exceptions anyway, check and abort if this fails. 67 // exceptions anyway, check and abort if this fails.
67 if (thread == NULL || thread->osthread() == NULL) { 68 if (thread == NULL || thread->osthread() == NULL) {
68 vm_exit_during_initialization("java.lang.OutOfMemoryError", 69 vm_exit_during_initialization("java.lang.OutOfMemoryError",
69 "unable to create new native thread"); 70 os::native_thread_creation_failed_msg());
70 } 71 }
71 72
72 java_lang_Thread::set_thread(thread_oop(), thread); 73 java_lang_Thread::set_thread(thread_oop(), thread);
73 java_lang_Thread::set_priority(thread_oop(), NearMaxPriority); 74 java_lang_Thread::set_priority(thread_oop(), NearMaxPriority);
74 java_lang_Thread::set_daemon(thread_oop()); 75 java_lang_Thread::set_daemon(thread_oop());