RFR: 8346120: VirtualThreadPinned event recorded for Object.wait may have wrong duration or may record second event [v3]
Alan Bateman
alanb at openjdk.org
Mon Dec 16 07:30:39 UTC 2024
On Sun, 15 Dec 2024 21:18:44 GMT, David Holmes <dholmes at openjdk.org> wrote:
> So to be clear ... you want one pinned event, the duration of which spans the wait and the monitor reentry. If we are pinned for the wait then we must be pinned for the reentry for the same reason, so no need to report the same thing twice.
Right, and also it would be confusing to have a "contended monitor enter" event recorded with Object.wait as the top frame in the stack trace.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22718#issuecomment-2544797149
More information about the core-libs-dev
mailing list