RFR: 8231269: CompileTask::is_unloaded is slow due to JNIHandles type checks [v6]

Vladimir Ivanov vlivanov at openjdk.org
Fri Apr 25 21:27:49 UTC 2025


On Fri, 25 Apr 2025 09:53:03 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

>> src/hotspot/share/runtime/unloadableMethodHandle.hpp line 43:
>> 
>>> 41: //  3. Final released state. Relevant Method* is in unknown state, and cannot be
>>> 42: //     accessed.
>>> 43: //
>> 
>> Please, elaborate what state transitions are supported. Currently, my understanding is there are 3 transitions and 4 states:
>> * 1 -> 2
>> * 2 -> 3 (terminal)
>> * 1 -> 3 (terminal)
>> * 0 (empty, terminal)
>
> I added class-level docs for this handle, see if it reads well?

Looks good. Thanks.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24018#discussion_r2060899202


More information about the hotspot-gc-dev mailing list