RFR: 8339288: Improve diagnostic logging runtime/cds/DeterministicDump.java [v4]
Matias Saavedra Silva
matsaave at openjdk.org
Wed Nov 13 21:15:57 UTC 2024
> The test `DeterministicDump.java` fails frequently since it is sensitive to changes in CDS, and with it's current logging, it is very difficult to diagnose the root cause of these failures. The current output looks like this:
>
>
> [First diff: map file #1 (SharedArchiveFile0.map)]
> [ro region 0x00000008005a2000 - 0x0000000800ea7058 9457752 bytes]
> [ro region 0x00000008005a2000 - 0x0000000800ea7058 9457752 bytes]
> 0x00000008005a2000: @@ Symbol 40 [Ljdk/internal/vm/FillerElement;
>>0x00000008005a2000: 4c5b0020e72fffff 65746e692f6b646a 2f6d762f6c616e72 6c4572656c6c6946 ../. .[Ljdk/internal/vm/FillerEl
> 0x00000008005a2020: 00003b746e656d65 ement;..
> 0x00000008005a2028: @@ Symbol 8 [Z
>
> [First diff: map file #2 (SharedArchiveFile1.map)]
> [ro region 0x00000008005a2000 - 0x0000000800ea7058 9457752 bytes]
> [ro region 0x00000008005a2000 - 0x0000000800ea7058 9457752 bytes]
> 0x00000008005a2000: @@ Symbol 40 [Ljdk/internal/vm/FillerElement;
>>0x00000008005a2000: 4c5b00205d54ffff 65746e692f6b646a 2f6d762f6c616e72 6c4572656c6c6946 ..T] .[Ljdk/internal/vm/FillerEl
> 0x00000008005a2020: 00003b746e656d65 ement;..
> 0x00000008005a2028: @@ Symbol 8 [Z
>
> Byte #5910530 at line #235268 word #0:
> SharedArchiveFile0.map: 4c5b0020e72fffff
> SharedArchiveFile1.map: 4c5b00205d54ffff
>
>
> This change was verified locally by generating non-deterministic archives and map files.
Matias Saavedra Silva has updated the pull request incrementally with two additional commits since the last revision:
- Changed copyright
- Calvin comment
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/21913/files
- new: https://git.openjdk.org/jdk/pull/21913/files/1ba7318b..67d82af5
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=21913&range=03
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=21913&range=02-03
Stats: 3 lines in 1 file changed: 0 ins; 1 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/21913.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/21913/head:pull/21913
PR: https://git.openjdk.org/jdk/pull/21913
More information about the hotspot-runtime-dev
mailing list