Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8353129

CDS ArchiveRelocation tests fail after JDK-8325132

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • None
    • 25
    • hotspot
    • 25

      Test: runtime/cds/appcds/ArchiveRelocationTest.java

      We are in mode 0 but the test expects mode 1

      [0.042s][info][cds] ArchiveRelocationMode: 0
      [0.042s][info][cds] Reserved archive_space_rs [0x0000000800000000 - 0x0000000801000000] (16777216) bytes
      [0.042s][info][cds] Reserved class_space_rs [0x0000000801000000 - 0x0000000841000000] (1073741824) bytes
      [0.042s][info][cds] Mapped static region #0 at base 0x0000000800000000 top 0x0000000800560000 (ReadWrite)
      [0.042s][info][cds] Mapped static region #1 at base 0x0000000800560000 top 0x0000000800e10000 (ReadOnly)
      [0.042s][info][cds] _archived_main_module_name (null)
      [0.042s][info][cds] jdk.module.main (null)
      [0.042s][info][cds] optimized module handling: enabled
      [0.042s][info][cds] full module graph: enabled
      [0.042s][info][cds] jdk.module.addmods (null)
      [0.042s][info][cds] optimized module handling: enabled
      [0.042s][info][cds] full module graph: enabled
      [0.042s][info][cds] jdk.module.enable.native.access (null)
      [0.042s][info][cds] optimized module handling: enabled
      [0.042s][info][cds] full module graph: enabled
      [0.042s][info][cds] CDS archive was created with max heap size = 1938M, and the following configuration:
      [0.042s][info][cds] narrow_klass_base at mapping start address, narrow_klass_pointer_bits = 32, narrow_klass_shift = 0
      [0.042s][info][cds] narrow_oop_mode = 0, narrow_oop_base = 0x0000000000000000, narrow_oop_shift = 0
      [0.042s][info][cds] The current max heap size = 1938M, G1HeapRegion::GrainBytes = 1048576
      [0.042s][info][cds] narrow_klass_base = 0x0000000800000000, arrow_klass_pointer_bits = 32, narrow_klass_shift = 0
      [0.042s][info][cds] narrow_oop_mode = 0, narrow_oop_base = 0x0000000000000000, narrow_oop_shift = 0
      [0.042s][info][cds] heap range = [0x0000000086e00000 - 0x0000000100000000]
      [0.042s][info][cds] Preferred address to map heap data (to avoid relocation) is 0x00000000ffe00000
      [0.042s][info][cds] Heap data mapped at 0x00000000ffe00000, size = 1180568 bytes
      [0.042s][info][cds] CDS heap data relocation delta = 0 bytes
      [0.042s][info][cds] initial optimized module handling: enabled
      [0.042s][info][cds] initial full module graph: enabled
      [0.043s][info][cds] use_full_module_graph = true; java.base = 0x000000080055a258
      [0.043s][info][cds] Using AOT-linked classes: false (static archive: no aot-linked classes)
      [0.054s][info][cds,heap] resolve subgraph java.lang.Integer$IntegerCache
      [0.054s][info][cds,heap] resolve subgraph java.lang.Long$LongCache
      [0.054s][info][cds,heap] resolve subgraph java.lang.Byte$ByteCache
      [0.054s][info][cds,heap] resolve subgraph java.lang.Short$ShortCache
      [0.054s][info][cds,heap] resolve subgraph java.lang.Character$CharacterCache
      [0.054s][info][cds,heap] resolve subgraph java.util.jar.Attributes$Name
      [0.054s][info][cds,heap] resolve subgraph sun.util.locale.BaseLocale
      [0.054s][info][cds,heap] resolve subgraph jdk.internal.module.ArchivedModuleGraph
      [0.055s][info][cds,heap] resolve subgraph java.util.ImmutableCollections
      [0.055s][info][cds,heap] resolve subgraph java.lang.ModuleLayer
      [0.055s][info][cds,heap] resolve subgraph java.lang.module.Configuration
      [0.055s][info][cds,heap] resolve subgraph jdk.internal.math.FDBigInteger
      [0.055s][info][cds,heap] resolve subgraph jdk.internal.loader.ArchivedClassLoaders
      [0.056s][info][cds,heap] resolve subgraph jdk.internal.module.ArchivedBootLayer
      [0.056s][info][cds,heap] resolve subgraph java.lang.Module$ArchivedData
      [0.084s][info][cds,heap] init subgraph java.lang.Module$ArchivedData
      [0.085s][info][cds,heap] Verify heap before initializing static field(s) in java.lang.Module$ArchivedData
      [0.107s][info][cds,heap] initialize_from_archived_subgraph java.lang.Module$ArchivedData 0x00000008002da318 (early)
      [0.107s][info][cds,heap] Verify heap after initializing static field(s) in java.lang.Module$ArchivedData
      [0.143s][info][cds,heap] init subgraph java.lang.Integer$IntegerCache
      [0.144s][info][cds,heap] Verify heap before initializing static field(s) in java.lang.Integer$IntegerCache
      [0.168s][info][cds,heap] initialize_from_archived_subgraph java.lang.Integer$IntegerCache 0x00000008001df700 (early)
      [0.168s][info][cds,heap] Verify heap after initializing static field(s) in java.lang.Integer$IntegerCache
      [0.196s][info][cds,heap] init subgraph java.lang.Character$CharacterCache
      [0.196s][info][cds,heap] Verify heap before initializing static field(s) in java.lang.Character$CharacterCache
      [0.234s][info][cds,heap] initialize_from_archived_subgraph java.lang.Character$CharacterCache 0x00000008001d7600 (early)
      [0.234s][info][cds,heap] Verify heap after initializing static field(s) in java.lang.Character$CharacterCache
      [0.260s][info][cds,heap] init subgraph java.util.ImmutableCollections
      [0.260s][info][cds,heap] Verify heap before initializing static field(s) in java.util.ImmutableCollections
      [0.285s][info][cds,heap] initialize_from_archived_subgraph java.util.ImmutableCollections 0x00000008002c72b0 (early)
      [0.285s][info][cds,heap] Verify heap after initializing static field(s) in java.util.ImmutableCollections
      [0.313s][info][cds,heap] init subgraph jdk.internal.module.ArchivedBootLayer
      [0.313s][info][cds,heap] init subgraph java.lang.ModuleLayer
      [0.313s][info][cds,heap] init subgraph java.lang.module.Configuration
      [0.313s][info][cds,heap] Verify heap before initializing static field(s) in java.lang.module.Configuration
      [0.338s][info][cds,heap] initialize_from_archived_subgraph java.lang.module.Configuration 0x00000008002cf3b8 (early)
      [0.338s][info][cds,heap] Verify heap after initializing static field(s) in java.lang.module.Configuration
      [0.362s][info][cds,heap] Verify heap before initializing static field(s) in java.lang.ModuleLayer
      [0.393s][info][cds,heap] initialize_from_archived_subgraph java.lang.ModuleLayer 0x00000008002cd350 (early)
      [0.393s][info][cds,heap] Verify heap after initializing static field(s) in java.lang.ModuleLayer
      [0.419s][info][cds,heap] Initializing Enum class: java.lang.module.ModuleDescriptor$Requires$Modifier
      [0.421s][info][cds,heap] init subgraph jdk.internal.loader.ArchivedClassLoaders
      [0.422s][info][cds,heap] Verify heap before initializing static field(s) in jdk.internal.loader.ArchivedClassLoaders
      [0.446s][info][cds,heap] initialize_from_archived_subgraph jdk.internal.loader.ArchivedClassLoaders 0x00000008002663f0 (early)
      [0.446s][info][cds,heap] Verify heap after initializing static field(s) in jdk.internal.loader.ArchivedClassLoaders
      [0.471s][info][cds,heap] Verify heap before initializing static field(s) in jdk.internal.module.ArchivedBootLayer
      [0.495s][info][cds,heap] initialize_from_archived_subgraph jdk.internal.module.ArchivedBootLayer 0x00000008003600f0 (early)
      [0.495s][info][cds,heap] Verify heap after initializing static field(s) in jdk.internal.module.ArchivedBootLayer
      [0.527s][info][cds,heap] init subgraph sun.util.locale.BaseLocale
      [0.527s][info][cds,heap] Verify heap before initializing static field(s) in sun.util.locale.BaseLocale
      [0.552s][info][cds,heap] initialize_from_archived_subgraph sun.util.locale.BaseLocale 0x0000000800475a80
      [0.553s][info][cds,heap] Verify heap after initializing static field(s) in sun.util.locale.BaseLocale
      Hello World
      ];
       stderr: [java version "25-ea" 2025-09-16 LTS
      Java(TM) SE Runtime Environment (fastdebug build 25-ea+17-LTS-1837)
      Java HotSpot(TM) 64-Bit Server VM (fastdebug build 25-ea+17-LTS-1837, mixed mode, sharing)
      ]
       exitValue = 0

      java.lang.RuntimeException: 'ArchiveRelocationMode == 1: always map archive(s) at an alternative address' missing from stdout/stderr
      at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:253)
      at ArchiveRelocationTest.lambda$test$0(ArchiveRelocationTest.java:78)
      at jdk.test.lib.cds.CDSTestUtils$Result.assertNormalExit(CDSTestUtils.java:157)
      at ArchiveRelocationTest.test(ArchiveRelocationTest.java:76)
      at ArchiveRelocationTest.main(ArchiveRelocationTest.java:45)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:335)
      at java.base/java.lang.Thread.run(Thread.java:1447)

      Also test:

      runtime/cds/appcds/dynamicArchive/DynamicArchiveRelocationTest.java

            ccheung Calvin Cheung
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: