ConcurrentHashMap: Catch use-after-destruction user bugs
Summary: The change aims to make it easier to catch user bugs of using the map during or after its destruction in optimized modes without ASAN. The changes are: - Clear the buckets_ and chunks_ pointers in the corresponding destructors. - Add DCHECK-s of buckets_ (or chunks_) in other member functions when non-null values are expected. Reviewed By: davidtgoldblatt Differential Revision: D26232735 fbshipit-source-id: 14f0c11e10997773efb78c7275db99932dd19703
Showing
Please register or sign in to comment