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

Unify the semaphore usage in os_xxx.cpp

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 11
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b01

      Description

      In os_linux.cpp there are two ways to work with semaphores. The first uses the PosixSemaphore class, the other calls sem_post and sem_wait directly. It would probably be worth unfying these usages.

      os_linux.cpp:
      // Linux(POSIX) specific hand shaking semaphore.
      static sem_t sig_sem;
      static PosixSemaphore sr_semaphore;

      The same goes for os_solaris.cpp and os_bsd.cpp.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                coleenp Coleen Phillimore
                Reporter:
                stefank Stefan Karlsson
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: