The fix adds guards against JVMTI_ERROR_WRONG_PHASE error in VMObjectAlloc event handler.
Testing: fixed test on all platforms ------------- Commit messages: - fix Changes: https://git.openjdk.org/jdk/pull/26231/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26231&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8361314 Stats: 41 lines in 1 file changed: 40 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/26231.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/26231/head:pull/26231 PR: https://git.openjdk.org/jdk/pull/26231