RFR: 8378354: Faulty assertion in checkInvariants method of ConcurrentHashMap

Alan Bateman alanb at openjdk.org
Sat Feb 21 08:26:15 UTC 2026


On Sun, 13 Apr 2025 10:31:34 GMT, cdw200806 <duke at openjdk.org> wrote:

> "In Red-Black Trees, a red node cannot have any red children; this rule is violated even if only one child is red, not just when both children are red."

I've run tier1+tier2 with the tighter check and the assert checkInvariants didn't trip.

I agree with Jai that the PR branch should be sync'ed up as it's baseline is from 9 months ago.

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

PR Comment: https://git.openjdk.org/jdk/pull/24612#issuecomment-3938444058


More information about the core-libs-dev mailing list