RFR: 8058176: [mlvm] Tests should tolerate exceptions caused by code cache exhaustion.

Evgeny Nikitin enikitin at openjdk.java.net
Fri Feb 5 22:20:00 UTC 2021


A repetition of the #1622.

1. Normalise meth/stress/compiler/i2c_c2i/Test.java to use MultiThreadedTest framework;
2. Adjust MultiThreadedTest in order to accomodate the i2c_c2i test (add prepareThread method and logic);
3. Add ThrowableTolerance and DefaultThrowableTolerance as ways to control what Throwables are accepted;
4. Adjust MultiThreadedTest to catch Throwables and check if they are accepted;
5. Adjust individual tests to catch possible Throwables and check if they are accepted;
6. Un-problemlist the failing tests.

Testing vmTestBase/vm/mlvm/meth/stress run on macos-linux-windows (30 runs each) in x64 configurations, rebased on top of latest code base. Code cache was limited `-XX:ReservedCodeCacheSize=8M` as suggested in the case.

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

Commit messages:
 - 8058176: [mlvm] tests should tolerate exceptions caused by code cache exhaustion

Changes: https://git.openjdk.java.net/jdk/pull/2440/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=2440&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8058176
  Stats: 340 lines in 12 files changed: 245 ins; 31 del; 64 mod
  Patch: https://git.openjdk.java.net/jdk/pull/2440.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/2440/head:pull/2440

PR: https://git.openjdk.java.net/jdk/pull/2440


More information about the hotspot-compiler-dev mailing list