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

Add gtest run with -XX:+UseLargePages

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 17
    • 17
    • hotspot
    • None
    • gc
    • b06

    Description

      gtests need to be run, as part of the hotspot jtreg tests (test/hotspot/jtreg/gtest/GTestWrapper.java), with -XX:+UseLargePages (and potentially one separate run with -XX:LargePageSizeInBytes=1G).

      Potentially we can omit a lot of the gtests but at least the "os" tests should be run.

      We already do this for metaspace tests, so this can serve an example, see: test/hotspot/jtreg/gtest/MetaspaceGtests.java

      The tests should run even if the system does not have enough huge pages allocated, since even then part of the huge page initialization is done.

      Note: https://bugs.openjdk.java.net/browse/JDK-8257229 hampers this a bit, since if huge page allocation fails we print out unconditionally a warning to stderr which may confuse gtest death tests. So either that has to be solved or the death tests have to be excluded.

      Attachments

        Issue Links

          Activity

            People

              stuefe Thomas Stuefe
              stuefe Thomas Stuefe
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: