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

Ioi Lam iklam at openjdk.org
Wed Apr 17 03:50:28 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.

Ioi Lam has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision:

 - Merge branch 'master' into 8323900-avoid-os-init-random-in-static-cds-dump
 - 8323900: Avoid calling os::init_random() in CDS static dump

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/18728/files
  - new: https://git.openjdk.org/jdk/pull/18728/files/23883dcb..7e252cea

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=18728&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18728&range=00-01

  Stats: 13732 lines in 395 files changed: 8260 ins; 2724 del; 2748 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