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.
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.
- duplicates
-
JDK-8130039 Move the platform-specific [OS]Semaphore code
-
- Resolved
-
- relates to
-
JDK-8129814 improper use of OSX semaphore_t from signal handlers
-
- Closed
-
-
JDK-8194763 os::signal_lookup is unused
-
- Resolved
-