G1: Using a value near integer max for ActiveProcessorCount causes fatal crash

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P5
    • 27
    • Affects Version/s: 8
    • Component/s: hotspot
    • gc

      Reproducer:

      build/linux-x86_64-server-release/jdk/bin/java -XX:+UseG1GC -XX:ActiveProcessorCount=2147483646
      uint G1ConcRefinementThreads=268435457 is outside the allowed range [ 0 ... 268435455 ]
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (jvmFlagAccess.cpp:117), pid=2906209, tid=2906210
      # fatal error: FLAG_SET_ERGO cannot be used to set an invalid value for G1ConcRefinementThreads
      #
      # JRE version: (27.0) (build )
      # Java VM: OpenJDK 64-Bit Server VM (27-internal-adhoc.jonas.openjdkpatches, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Core dump will be written. Default location: Determined by the following: "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h %d" (alternatively, falling back to /home/jonas/jdk/openjdk_patches/core.2906209)
      #
      # An error report file with more information is saved as:
      # /home/jonas/jdk/openjdk_patches/hs_err_pid2906209.log
      #
      #
      Aborted (core dumped)

            Assignee:
            Jonas Norlinder
            Reporter:
            Jonas Norlinder
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: