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

UseSerialGC not always set up properly

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • hotspot
    • None
    • gc
    • b64

        The GC setup code assumes that if non of the Use*GC flags is true we should be using SerialGC. But in that case we don't set UseSerialGC to true.

        For example running with -client will enable the SerialGC without setting UseSerialGC to true:

        java -client -XX:+PrintFlagsFinal -version | grep "UseSerialGC\|UseG1GC\|UseParallelGC\|UseConcMarkSweepGC"
             bool UseConcMarkSweepGC = false {product}
             bool UseG1GC = false {product}
             bool UseParallelGC = false {product}
             bool UseSerialGC = false {product}
        java version "1.9.0-ea"
        Java(TM) SE Runtime Environment (build 1.9.0-ea-b44)
        Java HotSpot(TM) Client VM (build 1.9.0-ea-b44, mixed mode)

        The GC code can be simplified if we know that one of UseSerialGC, UseG1GC, UseParallelGC and UseConcMarkSweepGC is always true.

              pliden Per Liden (Inactive)
              brutisso Bengt Rutisson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: