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

Unify the semaphore usage in os_xxx.cpp

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 11
    • 9
    • hotspot
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: