RFR: 8367725: Incorrect reading of oop in SuspendResumeManager::suspend while thread is blocked [v5]
Leonid Mesnik
lmesnik at openjdk.org
Tue Sep 16 19:11:49 UTC 2025
> The
> `SuspendResumeManager::suspend(bool register_vthread_SR)`
> has an issue while suspend current virtual thread. The suspend tries to access vthread oop field to read vthread id after thread is blocked.
>
> Seems, that this case is not used by our debugger and was not covered by tests. I found it using jtreg test thread virtual factory plugin. I updated existing test to reproduce this problem. The easiest way is to suspend current virtual thread using plain SuspendThread.
>
> The fix added some "asymmetry" in suspend/resume mechanism which is required because self-suspend doesn't have resume counterpart.
Leonid Mesnik has updated the pull request incrementally with one additional commit since the last revision:
ident fixed
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/27317/files
- new: https://git.openjdk.org/jdk/pull/27317/files/45ff0b72..024ff23f
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=27317&range=04
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=27317&range=03-04
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/27317.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/27317/head:pull/27317
PR: https://git.openjdk.org/jdk/pull/27317
More information about the serviceability-dev
mailing list