comparison src/share/vm/runtime/serviceThread.cpp @ 14909:4ca6dc0799b6

Backout jdk9 merge
author Gilles Duboscq <duboscq@ssw.jku.at>
date Tue, 01 Apr 2014 13:57:07 +0200
parents ad3f8397fe37
children 7848fc12602b
comparison
equal deleted inserted replaced
14908:8db6e76cb658 14909:4ca6dc0799b6
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"
31 #include "prims/jvmtiImpl.hpp" 30 #include "prims/jvmtiImpl.hpp"
32 #include "services/gcNotifier.hpp" 31 #include "services/gcNotifier.hpp"
33 #include "services/diagnosticArgument.hpp" 32 #include "services/diagnosticArgument.hpp"
34 #include "services/diagnosticFramework.hpp" 33 #include "services/diagnosticFramework.hpp"
35 34
65 // JavaThread due to lack of memory. We would have to throw an exception 64 // JavaThread due to lack of memory. We would have to throw an exception
66 // in that case. However, since this must work and we do not allow 65 // in that case. However, since this must work and we do not allow
67 // exceptions anyway, check and abort if this fails. 66 // exceptions anyway, check and abort if this fails.
68 if (thread == NULL || thread->osthread() == NULL) { 67 if (thread == NULL || thread->osthread() == NULL) {
69 vm_exit_during_initialization("java.lang.OutOfMemoryError", 68 vm_exit_during_initialization("java.lang.OutOfMemoryError",
70 os::native_thread_creation_failed_msg()); 69 "unable to create new native thread");
71 } 70 }
72 71
73 java_lang_Thread::set_thread(thread_oop(), thread); 72 java_lang_Thread::set_thread(thread_oop(), thread);
74 java_lang_Thread::set_priority(thread_oop(), NearMaxPriority); 73 java_lang_Thread::set_priority(thread_oop(), NearMaxPriority);
75 java_lang_Thread::set_daemon(thread_oop()); 74 java_lang_Thread::set_daemon(thread_oop());