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

Wrap up pthread_cond_wait into a loop to workaround potential spurious wakeups

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b20
    • OS:
      linux

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: