RFR: 8305895: Implement JEP 450: Compact Object Headers (Experimental) [v6]

Thomas Stuefe stuefe at openjdk.org
Mon Aug 26 08:06:09 UTC 2024


On Fri, 23 Aug 2024 19:03:19 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:

>> Roman Kennke has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Fix bit counts in GCForwarding
>
> test/hotspot/jtreg/runtime/cds/appcds/TestZGCWithCDS.java line 59:
> 
>> 57:     public static void main(String... args) throws Exception {
>> 58:          String zGenerational = args[0];
>> 59:          String compactHeaders = "-XX:" + (zGenerational.equals("-XX:+ZGenerational") ? "+" : "-") + "UseCompactObjectHeaders";
> 
> The test failing with
>  stdout: [[0.176s][info][cds] trying to map /opt/mach5/mesos/work_dir/slaves/a20696e7-ae7d-4d37-8e9c-83f99ef002cb-S2261/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/f0801999-993f-4e08-b017-08b33a8ec44f/runs/34cc555e-ae8f-4a48-8175-e998194f204b/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_cds_relocation/scratch/5/appcds-18h50m16s773.jsa
> [0.176s][info][cds] Opened archive /opt/mach5/mesos/work_dir/slaves/a20696e7-ae7d-4d37-8e9c-83f99ef002cb-S2261/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/f0801999-993f-4e08-b017-08b33a8ec44f/runs/34cc555e-ae8f-4a48-8175-e998194f204b/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_cds_relocation/scratch/5/appcds-18h50m16s773.jsa.
> [0.176s][info][cds] Archive was created with UseCompressedOops = 0, UseCompressedClassPointers = 1
> [0.176s][info][cds] The shared archive file's UseCompactObjectHeaders setting (enabled) does not equal the current UseCompactObjectHeaders setting (disabled).
> [0.176s][info][cds] Initialize static archive failed.
> [0.176s][info][cds] Unable to map shared spaces
> [0.176s][error][cds] An error has occurred while processing the shared archive file.
> [0.176s][error][cds] Unable to map shared spaces
> Error occurred during initialization of VM
> Unable to use shared archive.
> ];
>  stderr: []
>  exitValue = 1
> 
> java.lang.RuntimeException: 'Hello World' missing from stdout/stderr
> 	at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:252)
> 	at TestZGCWithCDS.main(TestZGCWithCDS.java:123)
> 	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
> 	at java.base/java.lang.reflect.Method.invoke(Method.java:573)
> 	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
> 	at java.base/java.lang.Thread.run(Thread.java:1575)
> 
> JavaTest Message: Test threw exception: java.lang.RuntimeException
> JavaTest Message: shutting down test

Roman has two weeks of vacation; I am taking a look at this one.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20677#discussion_r1730855152


More information about the build-dev mailing list