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

java/lang/WeakPairMap/Driver.java failed AssertionError: Expected: true, actual: false

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 14
    • Fix Version/s: tbd
    • Component/s: core-libs
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      os_x

      Description

      The following test failed in the JDK14 CI:

      java/lang/WeakPairMap/Driver.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(4/157)----------
      command: main Driver
      reason: User specified action: run main Driver
      Mode: othervm [test or library overrides a system module]
      elapsed time (seconds): 98.37
      ----------configuration:(3/349)----------
      Boot Layer
        patch: java.base /scratch/mesos/slaves/ec52e70b-7270-4911-a8ea-ec00a8b5dfb8-S968/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/4bab793f-9055-47a7-899c-701abf316580/runs/2a7f5ee9-3f71-4220-9137-bda82bbb7ef8/testoutput/test-support/jtreg_open_test_jdk_jdk_lang/classes/0/java/lang/WeakPairMap/Driver.d/patches/java.base

      ----------System.out:(0/0)----------
      ----------System.err:(15/959)----------
      java.lang.AssertionError: Expected: true, actual: false
      at java.base/java.lang.WeakPairMapTest.assertEquals(WeakPairMapTest.java:172)
      at java.base/java.lang.WeakPairMapTest.main(WeakPairMapTest.java:132)
      at Driver.main(Driver.java:33)
      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.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:833)

      JavaTest Message: Test threw exception: java.lang.AssertionError: Expected: true, actual: false
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.AssertionError: Expected: true, actual: false
      ----------rerun:(46/5184)*----------

      Looks like this Tier8 task invokes these with these options:

      -Xcomp -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:-TieredCompilation -XX:-DoEscapeAnalysis


      This appears to the the code that is failing:

      130 // check cleanup when 1st key is unreachable
      131 key1 = null;
      132 assertEquals(gcAndWaitRemoved(pm, "abc", cleanupTimeout), true);
      133 Reference.reachabilityFence(key2);

        Attachments

          Activity

            People

            • Assignee:
              plevart Peter Levart
              Reporter:
              dcubed Daniel Daugherty
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: