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

[TESTBUG] ArchivedModuleCompareTest.java fails with -vmoptions:-Xlog:cds

XMLWordPrintable

    • b25

      ArchivedModuleCompareTest.java tests equality of the entire STDOUT of two spawned JVM processes [1]. However, if this test is run with

      jtreg -vmoptions:-Xlog:cds ArchivedModuleCompareTest.java

      The two processes will have different logging out, and thus will fail the equality test:

      ----------System.err:(14/890)----------
      java.lang.RuntimeException: java.base is different from HeapRegion::GrainBytes = 1048576
      [0.020s][info][cds] narrow_klass_base = 0x0000000800000000
      at TestCommon.checkOutputStrings(TestCommon.java:606)
      at ArchivedModuleCompareTest.main(ArchivedModuleCompareTest.java:58)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:246)
      at java.base/java.lang.Thread.run(Thread.java:833)

      ======
      [1] http://hg.openjdk.java.net/jdk/jdk/file/438337c846fb/test/hotspot/jtreg/runtime/cds/appcds/cacheObject/ArchivedModuleCompareTest.java#l58

            iklam Ioi Lam
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: