RFR: 8268638: semaphores of AsyncLogWriter may be broken when JVM is exiting. [v2]

Xin Liu xliu at openjdk.java.net
Sun Jun 13 04:48:03 UTC 2021


> All 3 semaphores used by AsyncLogWriter are static member data. C++ runtime on
> MacOS deletes them. Currently, AsyncLog Thread doesn't exit. Semaphore_wait/signal
> returns with KERN_INVALID_NAME(15) if those semaphore are destroyed. 
> 
> This patch change those to regular data members. This prevents from deleting.

Xin Liu has updated the pull request incrementally with one additional commit since the last revision:

  Support --with-debug-level=optimized.
  
  release build with debug level optimized doesn't define PRODUCT.
  use ASSERT instead.

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/4479/files
  - new: https://git.openjdk.java.net/jdk/pull/4479/files/634c164b..b7f853de

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=4479&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=4479&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/4479.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/4479/head:pull/4479

PR: https://git.openjdk.java.net/jdk/pull/4479


More information about the hotspot-runtime-dev mailing list