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

The test checks for JVMTI `COMPILED_METHOD_LOAD` and `COMPILED_METHOD_UNLOAD` 
events to be published for a relocated nmethod. JVMTI events however are not 
guaranteed to be published before the JVM exits which can occasionally cause 
the test to fail. Instead of failing if the events are not receive the test was 
modified to print an error and pass. However, the test will still fail if the 
method fails to compile or if the nmethod fails to relocate.

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

Commit messages:
 - Fix NMethodRelocationTest

Changes: https://git.openjdk.org/jdk/pull/28683/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28683&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8369150
  Stats: 49 lines in 2 files changed: 30 ins; 11 del; 8 mod
  Patch: https://git.openjdk.org/jdk/pull/28683.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/28683/head:pull/28683

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

Reply via email to