RFR: 8219197: ThreadGroup.enumerate() may return wrong value

Pavel Rappo pavel.rappo at oracle.com
Wed Mar 13 14:41:19 UTC 2019

> On 13 Mar 2019, at 14:22, Daniel Fuchs <daniel.fuchs at oracle.com> wrote:
> I don't think there is another bug in the 3-args enumerate
> methods.

I might not have expressed myself clearly. I'm not saying there is an extra bug
with the fix applied. What I'm saying is that without the fix, not only was the
value wrong but the array was also corrupted. The mechanics exactly as you
described: later groups overwrote the beginning of the array.

I'm reading the test. Still trying to figure out how it works in detail. Give me
some more time to get comfortable with it and I will reply to the list. At the
very least I would (suggestion) change the @summary. After all if this group is
being destroyed, and this is the only call, then 0 would be a correct value,
wouldn't it?


More information about the core-libs-dev mailing list