RFR: 8231269: CompileTask::is_unloaded is slow due to JNIHandles type checks [v2]
Aleksey Shipilev
shade at openjdk.org
Wed Apr 23 17:26:37 UTC 2025
On Wed, 23 Apr 2025 11:29:34 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
> SA needs fixes now, but I'll test how well this works on other tests.
Actually, I can just purge `CompileTask.java`: https://github.com/openjdk/jdk/pull/24832
I see that async-profiler uses the `CompileTask::_method` field directly, I think to see what compiler threads are up to. So it needs to be fixed after this PR lands, and it would dereference through the newly added handle. Luckily, I think that access only happens when compilation is already running, and `method*` is guaranteed to be alive. Paging @apangin for visibility.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/24018#issuecomment-2825010041
More information about the hotspot-gc-dev
mailing list