RFR: 8323900: Avoid calling os::init_random() in CDS static dump
Ioi Lam
iklam at openjdk.org
Wed Apr 10 16:36:32 UTC 2024
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.
-------------
Commit messages:
- 8323900: Avoid calling os::init_random() in CDS static dump
Changes: https://git.openjdk.org/jdk/pull/18728/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18728&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8323900
Stats: 24 lines in 4 files changed: 14 ins; 6 del; 4 mod
Patch: https://git.openjdk.org/jdk/pull/18728.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/18728/head:pull/18728
PR: https://git.openjdk.org/jdk/pull/18728
More information about the hotspot-dev
mailing list