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

jaotc options lost after 8177046

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Subcomponent:
    • Introduced In Version:
      10
    • Resolved In Build:
      b21

      Description

      If I'm reading the following code correctly:

                  OptionValues graalOptions = HotSpotGraalOptionValues.HOTSPOT_OPTIONS;
                  // Setting -Dgraal.TieredAOT overrides --compile-for-tiered
                  if (!TieredAOT.hasBeenSet(graalOptions)) {
                      graalOptions = new OptionValues(graalOptions, TieredAOT, options.tiered);
                  }
                  graalOptions = new OptionValues(HotSpotGraalOptionValues.HOTSPOT_OPTIONS, GeneratePIC, true, ImmutableCode, true);

      Then the last setting of graalOptions cancels any previous change, because we pass in HOTSPOT_OPTIONS instead of graalOptions.

        Attachments

          Activity

            People

            • Assignee:
              kvn Vladimir Kozlov
              Reporter:
              dlong Dean Long
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: