RFR: 8378354: Faulty assertion in checkInvariants method of ConcurrentHashMap

Alan Bateman alanb at openjdk.org
Fri Feb 20 18:29:05 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."

We should create an issue in JBS for this. The tests run with -esa so I would expect checkInvariants is run a lot in testing.

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

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


More information about the core-libs-dev mailing list