From: Jeff Hostetler Date: Wed, 30 Aug 2017 18:59:21 GMT Subject: [PATCH] hashmap: address ThreadSanitizer concerns Message-ID: <20170830185922.10107-1-git@jeffhostetler.com> In-Reply-To: From: Jeff Hostetler This is to address concerns raised by ThreadSanitizer on the mailing list about threaded unprotected R/W access to map.size with my previous "disallow rehash" change (0607e10009ee4e37cb49b4cec8d28a9dda1656a4). See: https://public-inbox.org/git/adb37b70139fd1e2bac18bfd22c8b96683ae18eb.1502780344.git.martin.agren@gmail.com/ TODO This version contains methods to disable item counting and automatic rehashing independently. Since the latter is implicit with the former, we could get by with just the one, but I thought we could discuss it since it does provide a little extra clarity of intent. Jeff Hostetler (1): hashmap: add API to disable item counting when threaded attr.c | 14 ++++--- builtin/describe.c | 2 +- hashmap.c | 31 +++++++++++----- hashmap.h | 98 ++++++++++++++++++++++++++++++++++++++----------- name-hash.c | 6 ++- t/helper/test-hashmap.c | 2 +- 6 files changed, 113 insertions(+), 40 deletions(-) -- 2.9.3