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

Chris Plummer cjplummer at openjdk.org
Fri Dec 5 00:02:57 UTC 2025


On Thu, 4 Dec 2025 23:56:29 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:

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

ThreadedEventImpl has the following for toString():

            return eventName() + " in thread " + thread.name();

This is the one being triggerd by the test via the thread.name() call. LocatableEventImpl inherits from ThreadedEventImpl and has its own toString() with the same thread.name() reference, so it also needs to be fixed. I think that might be it.

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

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


More information about the serviceability-dev mailing list