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

hprof tests fail with -XX:-CompactStrings

XMLWordPrintable

    • svc
    • b16

        I think the hprof test library is confused about Strings with -XX:-CompactStrings.

        % time CONF=macosx-aarch64-server-fastdebug make test TEST=serviceability/HeapDump TEST_VM_OPTS=-XX:-CompactStrings

        STDERR:
        java.lang.RuntimeException: value for field A.s not found: expected true, was false
        at jdk.test.lib.Asserts.fail(Asserts.java:691)
        at jdk.test.lib.Asserts.assertTrue(Asserts.java:543)
        at FieldsInInstanceTest.verifyDump(FieldsInInstanceTest.java:167)
        at FieldsInInstanceTest.main(FieldsInInstanceTest.java:111)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        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

              shade Aleksey Shipilev
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: