Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8175817

Clean up Solaris signal code: SIGUSR2, SIGasync, SIGJVM1/2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 9, 10
    • hotspot
    • b21
    • solaris

      We have:

      ./os/solaris/vm/jvm_solaris.h:#define ASYNC_SIGNAL SIGUSR2 /* Watcher & async err support. */

      and then

      ./os/solaris/vm/os_solaris.cpp:int os::Solaris::_SIGasync = ASYNC_SIGNAL;
      ./os/solaris/vm/os_solaris.cpp: print_signal_handler(st, ASYNC_SIGNAL, buf, buflen);

      but SIGUSR2 is not used on Solaris, we use SIGJVM2 and override the initialization of _SIGasync:

      ./os/solaris/vm/os_solaris.cpp: os::Solaris::set_SIGasync(SIGJVM2);

      This should be cleaned up.

            dholmes David Holmes
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: