Integrated: 8268638: semaphores of AsyncLogWriter may be broken when JVM is exiting.
Xin Liu
xliu at openjdk.java.net
Thu Jun 17 20:31:29 UTC 2021
On Sun, 13 Jun 2021 01:01:43 GMT, Xin Liu <xliu at openjdk.org> wrote:
> All 3 semaphores used by AsyncLogWriter are static member data. CRT(`libsystem_c.dylib __cxa_finalize_ranges`) deletes them on MacOS. Currently, AsyncLog Thread doesn't exit at all. As a result, semaphore_wait/signal
> returns with KERN_INVALID_NAME(15) After those semaphore are destroyed.
>
> This patch change those to regular data members. This prevents from deleting.
> This patch also provides a general RAII class AsyncLogLocker which is analogous MutexLocker.
This pull request has now been integrated.
Changeset: fa3b44d4
Author: Xin Liu <xliu at openjdk.org>
Committer: Paul Hohensee <phh at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/fa3b44d43811dca8c609d6c61a58680835abf8e3
Stats: 22 lines in 2 files changed: 6 ins; 7 del; 9 mod
8268638: semaphores of AsyncLogWriter may be broken when JVM is exiting.
Reviewed-by: dholmes, phh
-------------
PR: https://git.openjdk.java.net/jdk/pull/4479
More information about the hotspot-runtime-dev
mailing list