RFR: 8296401: ConcurrentHashTable::bulk_delete might miss to delete some objects [v5]
Leo Korinth
lkorinth at openjdk.org
Thu Dec 22 11:02:53 UTC 2022
On Fri, 9 Dec 2022 19:54:48 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.
>
> Leo Korinth has updated the pull request incrementally with one additional commit since the last revision:
>
> GrowableArray is indexed by int :-(
Hi, I just updated the code to use a `guarantee` line. I would have preferred to have a growable aray that is not limited by an `int`. If we get 2^31 element buckets, I think it is best to exit the VM...
-------------
PR: https://git.openjdk.org/jdk/pull/10983
More information about the hotspot-dev
mailing list