Tags: Clownsw/parallel-hashmap
Tags
Fix issue greg7mdp#117 - segfault when out of memory. when constructing an object to be inserted throws std::bad_alloc, the slot was mark as used (even though the object was not properly constructed), so eventually the destructor of a non-initialized object was called causing a segfault. Solution: mark the slot used only after the object is successfully constructed.
Fix issue greg7mdp#117 - segfault when out of memory. when constructing an object to be inserted throws std::bad_alloc, the slot was mark as used (even though the object was not properly constructed), so eventually the destructor of a non-initialized object was called causing a segfault. Solution: mark the slot used only after the object is successfully constructed.
Merge pull request greg7mdp#165 from greg7mdp/disable_locking Allow swap() to work with parallel hash maps/sets with different mutex types, so you can use the same container with or without locking.
PreviousNext