On Thu, 16 Oct 2025 09:25:42 GMT, Albert Mingkun Yang <[email protected]> wrote:

> Use `Reference.refersTo` API to get more up to date liveness info of a class 
> after OOM is thrown. The approach of relying `Cleaner` thread can incur some 
> "asynchronous" cause various retrying logic, complicating the flow.
> 
> The failure rate is ~60% before the fix and no failure for 2000 runs.
> 
> Test: tier1-5

This pull request has now been integrated.

Changeset: e62a7fa3
Author:    Albert Mingkun Yang <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/e62a7fa3832bbba11e6d630015f85ae945fac824
Stats:     54 lines in 2 files changed: 8 ins; 37 del; 9 mod

8342659: Test 
vmTestbase/nsk/jdi/ObjectReference/referringObjects/referringObjects002/referringObjects002.java
 failed: Class nsk.share.jdi.TestClass1 was not unloaded

Co-authored-by: Chris Plummer <[email protected]>
Reviewed-by: sspitsyn, cjplummer

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

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

Reply via email to