RFR: 8313816: Accessing jmethodID might lead to spurious crashes
Coleen Phillimore
coleenp at openjdk.org
Mon Nov 20 22:12:14 UTC 2023
On Thu, 16 Nov 2023 03:11:04 GMT, Jaroslav Bachorik <jbachorik at openjdk.org> wrote:
>> src/hotspot/share/oops/method.cpp line 2277:
>>
>>> 2275: }
>>> 2276: }
>>> 2277:
>>
>> Can this race with redefinition?
>
> The cleanup of previous versions is executed in VM_Operation at a safepoint - therefore we should be safe against races with class redefinitions.
> I am adding an assert to `clear_jmethod_id()` to check for being at a safepoint.
Yes, these are cleaned at a safepoint.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16662#discussion_r1399798259
More information about the hotspot-dev
mailing list