diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-04-19 19:01:34 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-04-19 19:01:34 +0000 |
commit | 99834fd9c67c9baad2e56f151a4bbe30edfd5322 (patch) | |
tree | c4678d012866ec58d1b66105266a70b23385dcaa /vespamalloc | |
parent | aa70ed3fa69fa0393e21945adeec56314619536b (diff) |
Fix typo
Diffstat (limited to 'vespamalloc')
-rw-r--r-- | vespamalloc/src/vespamalloc/malloc/allocchunk.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vespamalloc/src/vespamalloc/malloc/allocchunk.h b/vespamalloc/src/vespamalloc/malloc/allocchunk.h index 1106058ce53..f55f6c33cee 100644 --- a/vespamalloc/src/vespamalloc/malloc/allocchunk.h +++ b/vespamalloc/src/vespamalloc/malloc/allocchunk.h @@ -21,15 +21,15 @@ struct TaggedPtr { TaggedPtr(void *h, size_t t) noexcept : _ptr(h), _tag(t) {} #if defined(__x86_64__) -#define VESPA_USE_ATOMIC_TAGGEDPTR + #define VESPA_USE_ATOMIC_TAGGEDPTR TaggedPtr load(std::memory_order = std::memory_order_seq_cst) { - // Not that this is NOT an atomic load. The current use as the initial load - // in a compare_exchange loop is safe as a teader load will just give a retry. + // Note that this is NOT an atomic load. The current use as the initial load + // in a compare_exchange loop is safe as a teared load will just give a retry. return *this; } void store(TaggedPtr ptr) { - // Not that this is NOT an atomic store. The current use is in a unit test as an initial - // store before any threads are started. Just done so keep api compability with std::atomic as + // Note that this is NOT an atomic store. The current use is in a unit test as an initial + // store before any threads are started. Just done so to keep api compatible with std::atomic as // that is the preferred implementation.. *this = ptr; } |