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

Update @requires expression for GC tests to run if GC is default

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • None
    • gc
    • b105

      Two hs tests use @requires as shown below:
      gc/arguments/TestObjectTenuringFlags.java: * @requires vm.gc=="Parallel"
      gc/arguments/TestInitialTenuringThreshold.java: * @requires vm.gc=="Parallel"

      such usage is not correct, because those test will not be run if no collector is specified.

      The purpose of "@requires" is to protect a test from running in not applicable configuration, such as:
      - conflicting collector
      - wrong OS
      - not enough memory
      - product/debug build

      The right expression should look like:
      @requires vm.gc=="Parallel" | vm.gc=="null"

            dfazunen Dmitry Fazunenko (Inactive)
            dfazunen Dmitry Fazunenko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: