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

Print error if Shenandoah flags are empty (instead of crashing)

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8-shenandoah, 11.0.9, 17, 18, 19
    • Fix Version/s: 19
    • Component/s: hotspot
    • Subcomponent:
      gc
    • Resolved In Build:
      b03
    • CPU:
      generic
    • OS:
      generic

      Description

      Providing '-XX:ShenandoahGCMode=' or '-XX:ShenandoahGCHeuristics=' (when parsed) causes a crash without meaningful info. E.g.:

      java -XX:+UseShenandoahGC -XX:ShenandoahGCMode= -version
      java -XX:+UseShenandoahGC -XX:ShenandoahGCMode=satb -XX:ShenandoahGCHeuristics= -version
      java -XX:+UseShenandoahGC -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCMode=iu -XX:ShenandoahGCHeuristics= -version
      java -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:ShenandoahGCMode=passive -XX:ShenandoahGCHeuristics= -version

      Instead it can be reported similar to '=wrong', e.g:

      Error occurred during initialization of VM
      Unknown -XX:ShenandoahGCMode option (null)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dchuyko Dmitry Chuyko
              Reporter:
              dchuyko Dmitry Chuyko
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: