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

Wrap up pthread_cond_wait into a loop to workaround potential spurious wakeups

XMLWordPrintable

    • b20
    • linux

      In src/java.base/unix/native/libjsig/jsig.c

      signal_lock() makes all the thread that are not jvm wait while the later is installing signal handlers.

      This is done via a call to pthread_cond_wait().

      Spurious wakeups from pthread_cond_wait() are allowed, so it needs to be wrapped up into a loop.

            igerasim Ivan Gerasimov
            igerasim Ivan Gerasimov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: