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

Streamline RTM flag validity testing with generic flag testing support

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 10
    • hotspot
    • b21
    • x86, ppc

      RTM was implemented before specifying ranges for flags was established
      in openJdk. It has custom checks implemented per platform in
      vm_version_<cpu>.cpp as well as tests for these checks in compiler/rtm/cli.

      8180612 added ranges for a row of RTM flags. Tests for RTMAbortRation
      and RTMTotalCountIncrRate now fail, because the range check failure
      message is different.

      This change removes the custom checks, implements a generic method
      RTMTotalCountIncrRateConstraintFunc() and updates the tests. Some
      tests are now superfluous as the ranges will be tested by
      TestOptionsWithRanges.

            goetz Goetz Lindenmaier
            goetz Goetz Lindenmaier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: