RFR: 8296401: ConcurrentHashTable::bulk_delete might miss to delete some objects

David Holmes dholmes at openjdk.org
Mon Nov 7 00:31:14 UTC 2022


On Fri, 4 Nov 2022 13:38:23 GMT, Leo Korinth <lkorinth at openjdk.org> wrote:

> ConcurrentHashTable::bulk_delete might miss to delete some objects if a bucket has more than 256 entries. Current uses of ConcurrentHashTable are not harmed by this behaviour. 
> 
> I modified gtest:ConcurrentHashTable to detect the problem (first commit), and fixed the problem in the code (second commit).
> 
> Tests passes tier1-3.

Hi Leo,
Can you explain what the actual bug is here and/or in the JBS issue. AFAICS your fix is just to add a nested `for(;;)` loop but it is not clear what that actually achieves. Thanks.

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

PR: https://git.openjdk.org/jdk/pull/10983


More information about the hotspot-dev mailing list