The ap01t001 test creates six extra instances of the tested class, let them die, and then checks that it gets exactly six ObjectFree callbacks. The problem is that this is verified in the VMDeath callback and the test instance has gone out-of-scope and also died, which triggers a seventh ObjectFree event.
My proposed fix is to ensure that the test instance is kept alive.
My proposed fix is to ensure that the test instance is kept alive.
- duplicates
-
JDK-8256333 JVM/TI scenarios/allocation/AP01/ap01t001 fails intermittently with extra ObjectFree event
-
- Closed
-