ConcurrentHashMap: Fix race condition in clear()
Summary: ConcurrentHashMap's clear() implementation had a race condition where bucket_count_ / chunk_count_ might be changed after they are read, resulting in smaller than required replacement buffer being created. This change addresses race condition and adds test to reproduce the issue. Reviewed By: magedm Differential Revision: D34022761 fbshipit-source-id: 1c8e8c382adf3839cbb4031e85314a02d963a762
Showing
Please register or sign in to comment