Commit 3c798d86 authored by Maged Michael's avatar Maged Michael Committed by Facebook Github Bot

ConcurrentHashMap: Temporarily disable destruction order guarantee.

Summary: Temporarily disable the use of hazptr_obj_batch until higher-level users adapt to the destruction order policy of completing the destruction of keys and values by the completion of ConcurrentHashMap destructor.

Reviewed By: yfeldblum

Differential Revision: D13136251

fbshipit-source-id: ee2ed21d1825d2609d8f097e878457975d7909e8
parent 4ec869b9
...@@ -169,7 +169,12 @@ class NodeT : public hazptr_obj_base_linked< ...@@ -169,7 +169,12 @@ class NodeT : public hazptr_obj_base_linked<
DCHECK(batch); DCHECK(batch);
this->set_deleter( // defined in hazptr_obj this->set_deleter( // defined in hazptr_obj
concurrenthashmap::HazptrDeleter<Allocator>()); concurrenthashmap::HazptrDeleter<Allocator>());
this->set_batch_tag(batch); // defined in hazptr_obj /* Note: Temporarily commenting out the next line to disable the
* use of hazptr_obj_batch until higher-level users adapt to the
* destruction order guarantee of completing the destruction of
* keys and values by the completion of the destructor of the
* associated ConcurrentHashMap. */
// this->set_batch_tag(batch); // defined in hazptr_obj
this->acquire_link_safe(); // defined in hazptr_obj_base_linked this->acquire_link_safe(); // defined in hazptr_obj_base_linked
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment