RFR: 8371121: compiler/whitebox/DeoptimizeRelocatedNMethod.java fails with C1

Chad Rakoczy duke at openjdk.org
Wed Nov 12 01:06:28 UTC 2025


[JDK-8371121](https://bugs.openjdk.org/browse/JDK-8371121)

This update aims to improve the test’s stability. A previous failure occurred because the method wasn’t compiled at the time of the check. I believe this could have occurred due to a deoptimization but I have not been able to reproduce. Previously, the test ensured compilation by repeatedly invoking the function. Instead, we now use Whitebox to add the method directly to the compile queue and wait for it to finish compiling. This approach should eliminate issues caused by deoptimization from function calls.

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

Commit messages:
 - Make DeoptimizeRelocatedNMethod more stable

Changes: https://git.openjdk.org/jdk/pull/28246/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28246&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8371121
  Stats: 15 lines in 1 file changed: 5 ins; 7 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/28246.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/28246/head:pull/28246

PR: https://git.openjdk.org/jdk/pull/28246


More information about the hotspot-compiler-dev mailing list