Integrated: 8323900: Avoid calling os::init_random() in CDS static dump
Ioi Lam
iklam at openjdk.org
Wed Apr 17 05:34:02 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.
This pull request has now been integrated.
Changeset: 2fe2f3af
Author: Ioi Lam <iklam at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/2fe2f3aff82f41a3b7942861e29ccbd3bcc68661
Stats: 23 lines in 4 files changed: 14 ins; 6 del; 3 mod
8323900: Avoid calling os::init_random() in CDS static dump
Reviewed-by: stuefe, ccheung
-------------
PR: https://git.openjdk.org/jdk/pull/18728
More information about the hotspot-dev
mailing list