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

Leo Korinth lkorinth at openjdk.org
Fri Nov 4 13:48:26 UTC 2022


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.

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

Commit messages:
 - working!
 - test

Changes: https://git.openjdk.org/jdk/pull/10983/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=10983&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8296401
  Stats: 101 lines in 2 files changed: 47 ins; 19 del; 35 mod
  Patch: https://git.openjdk.org/jdk/pull/10983.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/10983/head:pull/10983

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


More information about the hotspot-dev mailing list