RFR: 8341334: CDS: Parallel relocation [v9]

Aleksey Shipilev shade at openjdk.org
Wed Nov 6 19:11:30 UTC 2024


On Wed, 6 Nov 2024 12:54:37 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> Yes, I like this better too. Tying the thread pool to a utility class life cycle felt awkward.

Now I remember another reason why I initially hooked `ArchiveWorkers` to CDS lifecycle: we need to gracefully shutdown the pool, otherwise we exit the VM while some threads are still holding the semaphore. That apparently abruptly returns from semaphores, which the remaining code does not like. Fails during MacOS builds and tests then. It can be mitigated by shutting down the pool gracefully at VM exit, like in new commits.

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

PR Comment: https://git.openjdk.org/jdk/pull/21302#issuecomment-2460567611


More information about the hotspot-runtime-dev mailing list