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

runtime/NMT/NMTInitializationTest.java#default_long-off failed with "Suspiciously long bucket chains in lookup table."

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 22
    • 20
    • hotspot
    • b09
    • x86_64
    • os_x

      The following test failed in my nightly build-and-test run:

      runtime/NMT/NMTInitializationTest.java#default_long-off

      Here's snippet from the log file:

      ----------System.out:(9/1917)----------
      Test mode: mode_long, NMT mode: off
      Command line: [/System/Volumes/Data/work/shared/mirrors/src_clones/jdk/jdk_baseline.git/build/macosx-x86_64-normal-server-fastdebug/images/jdk/bin/java -cp /System/Volumes/Data/work/shared/mirrors/src_clones/jdk/jdk_baseline.git/build/macosx-x86_64-normal-server-fastdebug/test-support/jtreg_open_test_hotspot_jtreg_tier1/classes/3/runtime/NMT/NMTInitializationTest_default_long-off.d:/System/Volumes/Data/work/shared/mirrors/src_clones/jdk/jdk_baseline.git/open/test/hotspot/jtreg/runtime/NMT:/System/Volumes/Data/work/shared/mirrors/src_clones/jdk/jdk_baseline.git/build/macosx-x86_64-normal-server-fastdebug/test-support/jtreg_open_test_hotspot_jtreg_tier1/classes/3/test/lib:/System/Volumes/Data/work/local/jib-dcubed/install/jtreg/7/1/bundles/jtreg-7+1.zip/jtreg/lib/jtreg.jar:/System/Volumes/Data/work/local/jib-dcubed/install/jtreg/7/1/bundles/jtreg-7+1.zip/jtreg/lib/junit-platform-console-standalone-1.8.2.jar:/System/Volumes/Data/work/local/jib-dcubed/install/jtreg/7/1/bundles/jtreg-7+1.zip/jtreg/lib/testng-7.3.0.jar:/System/Volumes/Data/work/local/jib-dcubed/install/jtreg/7/1/bundles/jtreg-7+1.zip/jtreg/lib/jcommander-1.78.jar:/System/Volumes/Data/work/local/jib-dcubed/install/jtreg/7/1/bundles/jtreg-7+1.zip/jtreg/lib/guice-4.2.3.jar -Xlog:nmt -XX:NativeMemoryTracking=off -XX:+UnlockDiagnosticVMOptions -XX:+PrintNMTStatistics @commands_20000.txt -version ]
      [2022-09-17T06:59:05.258834Z] Gathering output for process 73913
      [2022-09-17T06:59:05.427636Z] Waiting for completion for process 73913
      [2022-09-17T06:59:05.427845Z] Waiting for completion finished for process 73913
      [2022-09-17T06:59:05.443535Z] Waiting for completion for process 73913
      [2022-09-17T06:59:05.443596Z] Waiting for completion finished for process 73913
      [0.019s][info][nmt] entries: 10321 (primary: 1964, empties: 5955), sum bytes: 3262549, longest chain length: 21
      found: 10321 - 326254921.
      ----------System.err:(23/1275)----------
       stdout: [[0.019s][info][nmt] NMT initialized: off
      [0.019s][info][nmt] Preinit state:
      [0.019s][info][nmt] entries: 10321 (primary: 1964, empties: 5955), sum bytes: 3262549, longest chain length: 21
      [0.020s][info][nmt] pre-init mallocs: 20338, pre-init reallocs: 10004, pre-init frees: 10017
      [0.020s][info][nmt]
      ];
       stderr: [Java HotSpot(TM) 64-Bit Server VM warning: PrintNMTStatistics is disabled, because native memory tracking is not enabled
      java version "20-internal" 2023-03-21
      Java(TM) SE Runtime Environment (fastdebug build 20-internal-2022-09-17-0503584.dcubed...)
      Java HotSpot(TM) 64-Bit Server VM (fastdebug build 20-internal-2022-09-17-0503584.dcubed..., mixed mode, sharing)
      ]
       exitValue = 0

      java.lang.RuntimeException: Suspiciously long bucket chains in lookup table.
              at NMTInitializationTest.main(NMTInitializationTest.java:211)
              at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
              at java.base/java.lang.reflect.Method.invoke(Method.java:578)
              at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
              at java.base/java.lang.Thread.run(Thread.java:1589)

      JavaTest Message: Test threw exception: java.lang.RuntimeException

        1. 8293972.zip
          3 kB
        2. main_ver1.cpp
          12 kB
        3. out_linux.txt.zip
          5.56 MB
        4. out_mac.txt.zip
          5.34 MB
        5. out_windows.txt.zip
          5.61 MB

            gziemski Gerard Ziemski
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: