RFR: 8320515: assert(monitor->object_peek() != nullptr) failed: Owned monitors should not have a dead object [v8]
Stefan Karlsson
stefank at openjdk.org
Tue Nov 28 07:22:16 UTC 2023
On Tue, 28 Nov 2023 05:31:11 GMT, David Holmes <dholmes at 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
More information about the hotspot-dev
mailing list