lib/hmap: Remove the memory fence from hmap_is_empty().
authorJarno Rajahalme <jrajahalme@nicira.com>
Wed, 19 Mar 2014 15:51:52 +0000 (08:51 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Wed, 19 Mar 2014 15:51:52 +0000 (08:51 -0700)
commit543ede7e3eaac62c14a061296722839829b0cef8
tree9e96f87349e7768ffd3da31e2fe57bf29240d336
parent61e7deb14330d107464c2ea70ed2a9f2f1d27af6
lib/hmap: Remove the memory fence from hmap_is_empty().

The fence made classifier_lookup() slower.  Access to a size_t 'n' is
safe without synchonizing, and if racing with writers matters,
additional syncronization primitives are used anyway.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/hmap.h