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

Aleksey Shipilev shade at openjdk.org
Mon May 26 19:01:38 UTC 2025


On Mon, 26 May 2025 07:53:19 GMT, Axel Boldt-Christmas <aboldtch at openjdk.org> wrote:

> Not sure what our opinion is w.r.t. `mutable`, but how do we feel about typing the spin lock as `mutable` and keep `is_safe()` and `method*()` const.

I like this a lot! Dropping `const` just to satisfy spin lock (an implementation detail) felt really awkward. New version uses `mutable`.

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

PR Comment: https://git.openjdk.org/jdk/pull/24018#issuecomment-2910465166


More information about the hotspot-gc-dev mailing list