RFR: 8378354: Faulty assertion in checkInvariants method of ConcurrentHashMap
Chen Liang
liach at openjdk.org
Fri Feb 20 18:29:07 UTC 2026
On Fri, 20 Feb 2026 14:18:37 GMT, Doug Lea <dl at openjdk.org> wrote:
> It's surprising that this has never triggered in tests.
The faulty assertion was weaker than the desired one: the desired assertion ensures there is no consecutive red nodes, while the faulty assertion checks there is no red node with both children being red.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/24612#issuecomment-3936422803
More information about the core-libs-dev
mailing list