RFR: 8369147: Various issues with new tests added by JDK-8316694 [v2]
Chad Rakoczy
duke at openjdk.org
Thu Oct 23 17:33:21 UTC 2025
> [JDK-8369147](https://bugs.openjdk.org/browse/JDK-8369147)
>
> Fixes tests added in [JDK-8316694](https://bugs.openjdk.org/browse/JDK-8316694)
>
> `DeoptimizeRelocatedNMethod.java` and `RelocateNMethod.java` failed because they attempted to relocate nmethods to the `MethodProfiled` code heap which does not exist when `TieredCompilation` is false. Updated the tests to use `MethodNonProfiled` heap which exists regardless of `TieredCompilation`
>
> `StressNMethodRelocation.java` runs for 60 seconds and also compiles 1024 methods with C2. This was causing the test to timeout if the compilation took too much time. Increasing the timeout to 5 minutes should give C2 enough time to compile the functions
>
> `NMethodRelocationTest.java` runs using SerialGC which caused a multiple GC error when trying to run with another GC. Added a requires to force SerialGC
Chad Rakoczy has updated the pull request incrementally with four additional commits since the last revision:
- Fix requires
- Reproblem list serviceability/jvmti/NMethodRelocation/NMethodRelocationTest.java
- Compile for 30 seconds instead of 1024 methods
- Fix requires
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/27659/files
- new: https://git.openjdk.org/jdk/pull/27659/files/6cbda05f..769800cb
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=27659&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=27659&range=00-01
Stats: 52 lines in 6 files changed: 16 ins; 2 del; 34 mod
Patch: https://git.openjdk.org/jdk/pull/27659.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/27659/head:pull/27659
PR: https://git.openjdk.org/jdk/pull/27659
More information about the serviceability-dev
mailing list