RFR: 8361314: Test serviceability/jvmti/VMEvent/MyPackage/VMEventRecursionTest.java FATAL ERROR in native method: Failed during the GetClassSignature call

Alex Menkov amenkov at openjdk.org
Thu Jul 10 20:11:40 UTC 2025


On Thu, 10 Jul 2025 03:26:56 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:

> Your changes look fine, but I'm a bit confused as to how this test is testing for what it claims it is testing:
> 
> `Verifies that a VM event callback does not recurse if a VM object is allocated during callback.`
> 
> Where is it actually checking that it is not recursing?

VMObjectAlloc callback does upcall (`clone`) which does new allocation.
So if the recursion happen, the test gets infinite recursion

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

PR Comment: https://git.openjdk.org/jdk/pull/26231#issuecomment-3058887673


More information about the serviceability-dev mailing list