On Tue, 28 Nov 2023 05:31:11 GMT, David Holmes <dhol...@openjdk.org> wrote:

>> test/hotspot/jtreg/runtime/Monitor/libMonitorWithDeadObjectTest.c line 110:
>> 
>>> 108: 
>>> 109:   // Let the GC clear the weak reference to the object.
>>> 110:   system_gc(env);
>> 
>> A single GC may not be enough...
>
> @dcubed-ojdk there's some earlier discussion on this. Apparently a single GC 
> is sufficient to clear an oopStorage WeakHandle, even though it may not be 
> enough for Java level reference processing actions to be observed.

One is enough for this test.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/16783#discussion_r1407319349

Reply via email to