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

CTW: Strict verification that requested compilation level matches the actual one

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 25
    • hotspot

      See JDK-8349915 for the example that should have been caught by CTW itself. Compilation policy may decide to compile on the different level, not the one CTW requested. This limits the scope of CTW testing, and likely hides bugs.

      There are a few "normal" compilation level changes due to compiler bailouts, like:

      ```
      [2] jdk.test.lib.Asserts::assertTrue(boolean) WARNING compilation level = 0, but not 1
      ```

      These report "level 0" as the result, so we likely want to accept those. But the rest should probably be turned into fatal CTW failures to capture accidents like JDK-8349915.

            Unassigned Unassigned
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: