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

ZGC: Apply workaround for buggy sem_post() in glibc < 2.21

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 11
    • 11
    • hotspot
    • gc
    • b19
    • x86
    • linux

    Backports

      Description

        We should apply a workaround for a bug in sem_post() in glibc < 2.21, where it's not safe to destroy the semaphore immediately after returning from sem_wait(). The reason is that sem_post() can touch the semaphore after a waiting thread have returned from sem_wait(). To avoid this race we should force the waiting thread to acquire/release the lock held by the posting thread.

        For more details, see https://sourceware.org/bugzilla/show_bug.cgi?id=12674

        Attachments

          Issue Links

            Activity

              People

                pliden Per Liden (Inactive)
                pliden Per Liden (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: