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

Shenandoah: Heap region count calculation still wrong after JDK-8265239

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 8-shenandoah, 11, 16, 17
    • Fix Version/s: None
    • Component/s: hotspot
    • Subcomponent:
      gc

      Description

      Nightly caught:

      # To suppress the following error report, specify this argument
      # after -XX: or in .hotspotrc: SuppressErrorAt=/shenandoahHeap.cpp:156
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/home/jenkins/workspace/nightly/jdk-jdk/src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp:156), pid=38919, tid=38930
      # assert(_num_regions == (max_byte_size / reg_size_bytes)) failed: Must match
      #
      # JRE version: (17.0) (fastdebug build )
      # Java VM: OpenJDK 64-Bit Server VM (fastdebug 17-internal+0-adhoc.jenkins.jdk-jdk, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, shenandoah gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x15c8fcf] ShenandoahHeap::initialize()+0xcf
      #
      # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
      #
      # An error report file with more information is saved as:
      # /home/jenkins/workspace/nightly/jdk-jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_tier1/scratch/1/hs_err_pid38919.log
      #
      #

      Apparently, JDK-8265239 did not fix the problem if heap needs to align to large page.

      Can be easily reproduced:
      make CONF=linux-x86_64-server-fastdebug TEST_VM_OPTS="-XX:+UseShenandoahGC -XX:+AlwaysPreTouch -XX:-SegmentedCodeCache -XX:+UseTransparentHugePages" run-test TEST=runtime/os/TestTracePageSizes.java

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              zgu Zhengyu Gu
              Reporter:
              zgu Zhengyu Gu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: