On Thu, 16 Nov 2023 03:11:04 GMT, Jaroslav Bachorik <jbacho...@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

Reply via email to