RFR: 8373102: com/sun/jdi/MethodInvokeWithTraceOnTest.java can fail with ObjectCollectedException when run with a small heap

Chris Plummer cjplummer at openjdk.org
Thu Dec 4 23:58:58 UTC 2025


On Thu, 4 Dec 2025 23:42:53 GMT, Alex Menkov <amenkov at openjdk.org> wrote:

> I think better solution would be to catch `ObjectCollectedException` in `EventSetImpl.toString` implementations (and print al least event name).
> But it might not be worth the effort, so it's up to you

I think your suggesting to implement it in all of the Event subclasses implemented as inner classes of EventSetImpl, right?

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

PR Comment: https://git.openjdk.org/jdk/pull/28666#issuecomment-3614776321


More information about the serviceability-dev mailing list