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

java/util/concurrent/ConcurrentHashMap/ToArray.java timed out intermittently

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 13
    • Fix Version/s: 13
    • Component/s: core-libs
    • Labels:

      Description

      java/util/concurrent/ConcurrentHashMap/ToArray.java

      observed this test timed out in jdk-13+10 testing intermittently, on both linux-x64 and windows-x64 (both machines are 32 cores system)
      Update: also spotted on a Solaris-SPARCV9 machine.


      "AgentVMThread" #1537 prio=5 os_prio=0 cpu=31.25ms elapsed=1211.59s tid=0x0000003a4c7c7000 nid=0x2bb0 waiting on condition [0x0000003a51a3e000]
         java.lang.Thread.State: WAITING (parking)
      at jdk.internal.misc.Unsafe.park(java.base@13-ea/Native Method)
      - parking to wait for <0x00000000e041f898> (a java.util.concurrent.CompletableFuture$Signaller)
      at java.util.concurrent.locks.LockSupport.park(java.base@13-ea/LockSupport.java:194)
      at java.util.concurrent.CompletableFuture$Signaller.block(java.base@13-ea/CompletableFuture.java:1867)
      at java.util.concurrent.ForkJoinPool.managedBlock(java.base@13-ea/ForkJoinPool.java:3137)
      at java.util.concurrent.CompletableFuture.waitingGet(java.base@13-ea/CompletableFuture.java:1894)
      at java.util.concurrent.CompletableFuture.join(java.base@13-ea/CompletableFuture.java:2114)
      at ToArray.executeTest(ToArray.java:99)
      at ToArray.main(ToArray.java:41)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@13-ea/Native Method)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@13-ea/NativeMethodAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@13-ea/DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(java.base@13-ea/Method.java:567)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
      at java.lang.Thread.run(java.base@13-ea/Thread.java:835)

      "ForkJoinPool.commonPool-worker-51" #1538 daemon prio=5 os_prio=0 cpu=1189859.38ms elapsed=1211.58s tid=0x0000003a4c7c4800 nid=0xdac runnable [0x0000003a51b3e000]
         java.lang.Thread.State: RUNNABLE
      at java.util.concurrent.ConcurrentHashMap$BaseIterator.<init>(java.base@13-ea/ConcurrentHashMap.java:3428)
      at java.util.concurrent.ConcurrentHashMap$KeyIterator.<init>(java.base@13-ea/ConcurrentHashMap.java:3447)
      at java.util.concurrent.ConcurrentHashMap$KeySetView.iterator(java.base@13-ea/ConcurrentHashMap.java:4627)
      at java.util.concurrent.ConcurrentHashMap$CollectionView.toArray(java.base@13-ea/ConcurrentHashMap.java:4456)
      at ToArray$1.run(ToArray.java:78)
      at java.util.concurrent.CompletableFuture$AsyncRun.run(java.base@13-ea/CompletableFuture.java:1807)
      at java.util.concurrent.CompletableFuture$AsyncRun.exec(java.base@13-ea/CompletableFuture.java:1799)
      at java.util.concurrent.ForkJoinTask.doExec(java.base@13-ea/ForkJoinTask.java:290)
      at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(java.base@13-ea/ForkJoinPool.java:1016)
      at java.util.concurrent.ForkJoinPool.scan(java.base@13-ea/ForkJoinPool.java:1665)
      at java.util.concurrent.ForkJoinPool.runWorker(java.base@13-ea/ForkJoinPool.java:1598)
      at java.util.concurrent.ForkJoinWorkerThread.run(java.base@13-ea/ForkJoinWorkerThread.java:177)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                martin Martin Buchholz
                Reporter:
                amlu Amy Lu
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: