-
Bug
-
Resolution: Fixed
-
P2
-
22, 23
-
b26
-
b07
-
aarch64
-
generic
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8325409 | 22.0.1 | Calvin Cheung | P2 | Resolved | Fixed | b04 |
./jdk-22/fastdebug/bin/java -version
java version "22-ea" 2024-03-19
Java(TM) SE Runtime Environment (fastdebug build 22-ea+25-1998)
Java HotSpot(TM) 64-Bit Server VM (fastdebug build 22-ea+25-1998, mixed mode, sharing)
$ ./jdk-22/fastdebug/bin/java -Xlog:cds -XX:+UnlockDiagnosticVMOptions -XX:ArchiveRelocationMode=1 --version | grep archive_space_rs | tail -1
[0.034s][info][cds] Reserved archive_space_rs [0x000002f000000000 - 0x000002f001000000] (16777216) bytes
$ ./jdk-22/fastdebug/bin/java -Xlog:cds -XX:+UnlockDiagnosticVMOptions -XX:ArchiveRelocationMode=1 --version | grep archive_space_rs | tail -1
[0.031s][info][cds] Reserved archive_space_rs [0x000001c000000000 - 0x000001c001000000] (16777216) bytes
$ ./jdk-22/fastdebug/bin/java -Xlog:cds -XX:+UnlockDiagnosticVMOptions -XX:ArchiveRelocationMode=1 --version | grep archive_space_rs | tail -1
[0.032s][info][cds] Reserved archive_space_rs [0x0000016000000000 - 0x0000016001000000] (16777216) bytes
With JDK22 build 26: (the archive address spaces are the same from run to run)
java version "22-ea" 2024-03-19
Java(TM) SE Runtime Environment (fastdebug build 22-ea+26-2112)
Java HotSpot(TM) 64-Bit Server VM (fastdebug build 22-ea+26-2112, mixed mode, sharing)
$ ./jdk-22/fastdebug/bin/java -Xlog:cds -XX:+UnlockDiagnosticVMOptions -XX:ArchiveRelocationMode=1 --version | grep archive_space_rs | tail -1
[0.033s][info][cds] Reserved archive_space_rs [0x00007ff000000000 - 0x00007ff001000000] (16777216) bytes
$ ./jdk-22/fastdebug/bin/java -Xlog:cds -XX:+UnlockDiagnosticVMOptions -XX:ArchiveRelocationMode=1 --version | grep archive_space_rs | tail -1
[0.032s][info][cds] Reserved archive_space_rs [0x00007ff000000000 - 0x00007ff001000000] (16777216) bytes
$ ./jdk-22/fastdebug/bin/java -Xlog:cds -XX:+UnlockDiagnosticVMOptions -XX:ArchiveRelocationMode=1 --version | grep archive_space_rs | tail -1
[0.032s][info][cds] Reserved archive_space_rs [0x00007ff000000000 - 0x00007ff001000000] (16777216) bytes
Bug only observed on the aarch64 platform.
(Note: in JDK22, the ArchiveRelocationMode is enabled by default. So the above results should be the same without the "-XX:+UnlockDiagnosticVMOptions -XX:ArchiveRelocationMode=1" VM options.)
- backported by
-
JDK-8325409 CDS archive space addresses should be randomized with ArchiveRelocationMode=1
-
- Resolved
-
- relates to
-
JDK-8320368 Per-CPU optimization of Klass range reservation
-
- Resolved
-
-
JDK-8323900 Avoid calling os::init_random() in CDS static dump
-
- Resolved
-
-
JDK-8329968 os::random should be random
-
- Closed
-
-
JDK-8320368 Per-CPU optimization of Klass range reservation
-
- Resolved
-
- links to
-
Commit openjdk/jdk22/4338cb3d
-
Commit openjdk/jdk/437342b9
-
Review openjdk/jdk22/98
-
Review openjdk/jdk/17409