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

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

XMLWordPrintable

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

        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

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

                Created:
                Updated:
                Resolved: