RFR: 8285032: [LOOM] vmTestbase/nsk/jdi/EventSet/suspendPolicy/suspendpolicy008/ fails with "eventSet.suspendPolicy() != policyExpected" [v2]

Alex Menkov amenkov at openjdk.java.net
Wed Apr 27 19:24:42 UTC 2022


On Wed, 27 Apr 2022 17:55:35 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:

>> test/hotspot/jtreg/vmTestbase/nsk/jdi/EventSet/suspendPolicy/suspendpolicy008.java line 421:
>> 
>>> 419:         try {
>>> 420:             ThreadStartRequest tsr = eventRManager.createThreadStartRequest();
>>> 421: //            tsr.addThreadFilter(mainThread);
>> 
>> I suppose the fix might be just to uncomment this line.
>> Your solution is more complex, but should work too
>
> I don't think that filter is correct. ThreadStartEvents are always delivered on the thread that is starting. Adding a thread filter for "main" is going to result in never finding a matching ThreadStartEvent since "main" has already started and it won't match any of the newly started threads.

Oh, yeah. You are right.

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

PR: https://git.openjdk.java.net/jdk/pull/8350


More information about the serviceability-dev mailing list