From fb2097510049948d9cce0219793ca61276e4f0ca Mon Sep 17 00:00:00 2001 From: Yedidya Feldblum Date: Fri, 14 Aug 2015 01:57:38 -0700 Subject: [PATCH] Fix AtomicHashArray::defaultConfig SIOF. Summary: [Folly] Fix AtomicHashArray::defaultConfig SIOF. May fix https://github.com/facebook/folly/issues/300. Reviewed By: @paulbiss Differential Revision: D2343162 --- folly/AtomicHashArray-inl.h | 19 ------------------- folly/AtomicHashArray.h | 16 ++++++---------- folly/AtomicHashMap-inl.h | 5 ----- folly/AtomicHashMap.h | 3 +-- 4 files changed, 7 insertions(+), 36 deletions(-) diff --git a/folly/AtomicHashArray-inl.h b/folly/AtomicHashArray-inl.h index 4997545e..80272d4a 100644 --- a/folly/AtomicHashArray-inl.h +++ b/folly/AtomicHashArray-inl.h @@ -23,19 +23,6 @@ namespace folly { -template -const KeyT AtomicHashArray::Config:: -kEmptyKey = (KeyT)-1; -template -const KeyT AtomicHashArray::Config:: -kLockedKey = (KeyT)-2; -template -const KeyT AtomicHashArray::Config:: -kErasedKey = (KeyT)-3; - // AtomicHashArray private constructor -- template @@ -257,12 +244,6 @@ erase(KeyT key_in) { } } -template -const typename AtomicHashArray::Config -AtomicHashArray::defaultConfig; - template typename AtomicHashArray -const typename AtomicHashMap::Config -AtomicHashMap::defaultConfig; - // AtomicHashMap constructor -- Atomic wrapper that allows growth // This class has a lot of overhead (184 Bytes) so only use for big maps template