Skip to content

Commit

Permalink
Move semaphore initialization for dispatcher thread up
Browse files Browse the repository at this point in the history
  • Loading branch information
tstuefe committed Sep 8, 2022
1 parent 5df0b1d commit 77826cf
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/hotspot/os/posix/signals_posix.cpp
Expand Up @@ -1820,13 +1820,18 @@ int PosixSignals::init() {
return JNI_ERR;
}

// Initialize data for jdk.internal.misc.Signal
if (!ReduceSignalUsage) {
jdk_misc_signal_init();
}

signal_sets_init();

install_signal_handlers();

// Initialize data for jdk.internal.misc.Signal
if (!ReduceSignalUsage) {
jdk_misc_signal_init();
// Test-send ourselves a SIGQUIT. Should come delayed at the end of VM initialization, when dispatcher thread is up and running.
if (UseNewCode) {
::kill(::getpid(), SIGQUIT);
}

return JNI_OK;
Expand Down

0 comments on commit 77826cf

Please sign in to comment.