[jdk17u-dev] RFR: 8314837: 5 compiled/codecache tests ignore VM flags

Amos Shi ashi at openjdk.org
Thu Aug 8 21:07:52 UTC 2024


Backport of [JDK-8314837](https://bugs.openjdk.org/browse/JDK-8314837)
- This PR is generated by git patch, so it is `considered as Clean`
- There is one line rejected for class `test/hotspot/jtreg/compiler/codecache/CodeCacheFullCountTest.java.rej`, content as bellow
  - This diff can be ignored, becuase the current version is in line with current latest jdk code base with [JDK-8315097](https://bugs.openjdk.org/browse/JDK-8315097)

`test/hotspot/jtreg/compiler/codecache/CodeCacheFullCountTest.java.rej` Contents

@@ -54,7 +55,7 @@
     }
 
     public static void runTest() throws Throwable {
-        ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
+        ProcessBuilder pb = ProcessTools.createTestJvm(
           "-XX:ReservedCodeCacheSize=2496k", "-XX:-UseCodeCacheFlushing", "-XX:-MethodFlushing", "CodeCacheFullCountTest", "WasteCodeCache");
         OutputAnalyzer oa = ProcessTools.executeProcess(pb);
         // Ignore adapter creation failures


Testing
- Local: Test passed on `MacOS 14.6.1` on Apple M1 Max
  - `CheckCodeCacheInfo.java`: Test results: passed: 1
  - `CodeCacheFullCountTest.java`: Test results: passed: 1
  - `TestSegmentedCodeCacheOption.java`: Test results: passed: 1
  - `TestCodeHeapSizeOptions.java`: Test results: passed: 1
  - `TestPrintCodeCacheOption.java`: Test results: passed: 1
- Pipeline: 
- Testing Machine:

-------------

Commit messages:
 - Backport 2a11bc41baec20cf670393ff29689043ed2d2114

Changes: https://git.openjdk.org/jdk17u-dev/pull/2788/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=2788&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8314837
  Stats: 10 lines in 5 files changed: 4 ins; 2 del; 4 mod
  Patch: https://git.openjdk.org/jdk17u-dev/pull/2788.diff
  Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/2788/head:pull/2788

PR: https://git.openjdk.org/jdk17u-dev/pull/2788


More information about the jdk-updates-dev mailing list