On Mon, 16 Oct 2023 21:05:58 GMT, Johannes Bechberger <jbechber...@openjdk.org> wrote:
>> Fix `onthrow` issue by passing the event info to the `initialize` method. >> >> This prevents `jdb` from receiving a broken exception event and throwing an >> internal NullPointerException, upon attaching to the JDWP-agent. > > Johannes Bechberger has updated the pull request incrementally with one > additional commit since the last revision: > > Update test/jdk/com/sun/jdi/JdwpOnThrowTest.java > > Co-authored-by: Chris Plummer <chris.plum...@oracle.com> I think I know the problem with virtual threads. It has to do with the fact that the debug agent tracks and registers virtual threads differently than platform threads, and the event handling code that normally does this is not executed when processing an event in this manner. I'll work on a fix. Shouldn't be too hard but probably has to wait until tomorrow. ------------- PR Comment: https://git.openjdk.org/jdk/pull/16145#issuecomment-1765518955