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

[JVMCI] Expose all GC selection flags

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b20

      Backports

        Description

        Graal now explicitly whitelists the GCs it supports[1]. This involves looping over all the -XX:Use*GC selector flags. The flag values are read from HotSpotVMConfigAccess.readFlag[2] which needs to make a VM call for each flag not in the predefined set of flags included when initializing JVMCI. By including all the GC selector flags in the predefined set, these VM calls can be avoided.

        [1] https://github.com/oracle/graal/blob/3ff06d1617240c5e6b7747d1305a060fd5c69369/compiler/src/org.graalvm.compiler.hotspot/src/org/graalvm/compiler/hotspot/HotSpotGraalRuntime.java#L157
        [2] http://hg.openjdk.java.net/jdk/jdk/file/0fb45c3b185e/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotVMConfigAccess.java#l277

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                dnsimon Douglas Simon
                Reporter:
                dnsimon Douglas Simon
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: