RFR: 8367725: Incorrect reading of oop in SuspendResumeManager::suspend while thread is blocked [v10]

Serguei Spitsyn sspitsyn at openjdk.org
Thu Sep 18 21:32:53 UTC 2025


On Thu, 18 Sep 2025 04:50:01 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:

>> Thanks - though I find this code rather convoluted. We now always extract the `id` even though we only need it in the `register_vthread_SR == true` case. I tried different re-arrangements of the code to see if it could be cleaner, but the JVMTI part is just messy.
>
> Yes, the id is always extracted and the exposure of "raw" id on this level is not the good desing. However, I don't know how to implement this better.

I'm not sure the exposure of "raw" id on this level is not a good design.
The parameter `register_vthread_SR` looks somewhat messy as it is used under JVMTI ifdef's only.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27317#discussion_r2361236101


More information about the serviceability-dev mailing list