< prev index next >

src/hotspot/share/runtime/os.cpp

Print this page

        

*** 441,451 **** // VM version initialization identifies some characteristics of the // platform that are used during ergonomic decisions. VM_Version::init_before_ergo(); } ! void os::signal_init(TRAPS) { if (!ReduceSignalUsage) { // Setup JavaThread for processing signals Klass* k = SystemDictionary::resolve_or_fail(vmSymbols::java_lang_Thread(), true, CHECK); InstanceKlass* ik = InstanceKlass::cast(k); instanceHandle thread_oop = ik->allocate_instance_handle(CHECK); --- 441,451 ---- // VM version initialization identifies some characteristics of the // platform that are used during ergonomic decisions. VM_Version::init_before_ergo(); } ! void os::initialize_jdk_signal_support(TRAPS) { if (!ReduceSignalUsage) { // Setup JavaThread for processing signals Klass* k = SystemDictionary::resolve_or_fail(vmSymbols::java_lang_Thread(), true, CHECK); InstanceKlass* ik = InstanceKlass::cast(k); instanceHandle thread_oop = ik->allocate_instance_handle(CHECK);
*** 471,482 **** vmSymbols::add_method_name(), vmSymbols::thread_void_signature(), thread_oop, // ARG 1 CHECK); - os::signal_init_pd(); - { MutexLocker mu(Threads_lock); JavaThread* signal_thread = new JavaThread(&signal_thread_entry); // At this point it may be possible that no osthread was created for the // JavaThread due to lack of memory. We would have to throw an exception --- 471,480 ----
< prev index next >