hotspot/src/share/vm/runtime/serviceThread.cpp
changeset 22758 c6b6abb73544
parent 17296 68557efd8583
child 25057 f38210f84f8c
equal deleted inserted replaced
22752:5796083e0729 22758:c6b6abb73544
    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());