short-circuit boolean evaluation in @requires expressons

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • jtreg4.2
    • Affects Version/s: None
    • Component/s: tools
    • None
    • b14

      Short-circuit boolean evaluation is needed to write reliable @requires expressions. Example [1][2] is UseCompressedOops VM boolean flag which is not defined for 32-bit VM. Correct test requirement would be:
      @requires vm.bits == 64 & vm.opt.final.UseCompressedOops
      - here we expect jtreg not to check right expression when left one is false.

      [1] http://mail.openjdk.java.net/pipermail/jtreg-use/2018-November/000661.html
      [2] http://mail.openjdk.java.net/pipermail/hotspot-dev/2018-November/035132.html

            Assignee:
            Boris Ulasevich
            Reporter:
            Boris Ulasevich
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: