RFR: 8323556: CDS archive space addresses should be randomized with ArchiveRelocationMode=1 [v2]
Calvin Cheung
ccheung at openjdk.org
Wed Jan 17 17:23:07 UTC 2024
> Please review this small fix for ensuring the reserved archive space addresses are different from run to run. The bug is only on the aarch64 platforms. The fix is to call `os::init_random()` if aslr is `true` and not dumping CDS static archive.
>
> Tested manually on linux-aarch64 and macosx-aarch64 platforms.
>
> % ./jdk-23/fastdebug/bin/java -Xlog:cds --version | grep archive_space_rs | tail -1
> [0.015s][info][cds] Reserved archive_space_rs [0x0000200000000000 - 0x0000200001000000] (16777216) bytes
> % ./jdk-23/fastdebug/bin/java -Xlog:cds --version | grep archive_space_rs | tail -1
> [0.014s][info][cds] Reserved archive_space_rs [0x0000080000000000 - 0x0000080001000000] (16777216) bytes
>
> The fix also passed tiers 1 - 4 testing.
Calvin Cheung has updated the pull request incrementally with one additional commit since the last revision:
@iklam comments
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/17409/files
- new: https://git.openjdk.org/jdk/pull/17409/files/27295336..ac0cf520
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=17409&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=17409&range=00-01
Stats: 17 lines in 1 file changed: 0 ins; 16 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/17409.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/17409/head:pull/17409
PR: https://git.openjdk.org/jdk/pull/17409
More information about the hotspot-runtime-dev
mailing list