RFR: 8323900: Avoid calling os::init_random() in CDS static dump

Calvin Cheung ccheung at openjdk.org
Tue Apr 16 04:34:59 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 ccheung (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/18728#pullrequestreview-2002558006


More information about the hotspot-dev mailing list