equal
deleted
inserted
replaced
441 // VM version initialization identifies some characteristics of the |
441 // VM version initialization identifies some characteristics of the |
442 // platform that are used during ergonomic decisions. |
442 // platform that are used during ergonomic decisions. |
443 VM_Version::init_before_ergo(); |
443 VM_Version::init_before_ergo(); |
444 } |
444 } |
445 |
445 |
446 void os::signal_init(TRAPS) { |
446 void os::initialize_jdk_signal_support(TRAPS) { |
447 if (!ReduceSignalUsage) { |
447 if (!ReduceSignalUsage) { |
448 // Setup JavaThread for processing signals |
448 // Setup JavaThread for processing signals |
449 Klass* k = SystemDictionary::resolve_or_fail(vmSymbols::java_lang_Thread(), true, CHECK); |
449 Klass* k = SystemDictionary::resolve_or_fail(vmSymbols::java_lang_Thread(), true, CHECK); |
450 InstanceKlass* ik = InstanceKlass::cast(k); |
450 InstanceKlass* ik = InstanceKlass::cast(k); |
451 instanceHandle thread_oop = ik->allocate_instance_handle(CHECK); |
451 instanceHandle thread_oop = ik->allocate_instance_handle(CHECK); |
470 group, |
470 group, |
471 vmSymbols::add_method_name(), |
471 vmSymbols::add_method_name(), |
472 vmSymbols::thread_void_signature(), |
472 vmSymbols::thread_void_signature(), |
473 thread_oop, // ARG 1 |
473 thread_oop, // ARG 1 |
474 CHECK); |
474 CHECK); |
475 |
|
476 os::signal_init_pd(); |
|
477 |
475 |
478 { MutexLocker mu(Threads_lock); |
476 { MutexLocker mu(Threads_lock); |
479 JavaThread* signal_thread = new JavaThread(&signal_thread_entry); |
477 JavaThread* signal_thread = new JavaThread(&signal_thread_entry); |
480 |
478 |
481 // At this point it may be possible that no osthread was created for the |
479 // At this point it may be possible that no osthread was created for the |