RFR: 8323900: Avoid calling os::init_random() in CDS static dump
Thomas Stuefe
stuefe at openjdk.org
Thu Apr 11 06:07:44 UTC 2024
On Wed, 10 Apr 2024 16:31:08 GMT, Ioi Lam <iklam at openjdk.org> wrote:
> The purpose of the PR is to avoid modifying the global JVM state while dumping the CDS archive.
>
> When updating the identity hashcode for archived Symbols, call `ArchiveBuilder::current()->entropy()` instead of `os::random()`. As a result, CDS no longer needs to call `os::init_random()` with a deterministic seed.
Looks good!
-------------
Marked as reviewed by stuefe (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/18728#pullrequestreview-1993342509
More information about the hotspot-dev
mailing list