aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2023-06-08 11:44:10 +0200
committerTor Egge <Tor.Egge@online.no>2023-06-08 11:44:10 +0200
commit5e82d1169aba61235bd146f713cfdd528777ea04 (patch)
tree65034bf394cfce53e91afe8778a999e03a5ab7d4 /vespalib/src
parent51cb20b7f0775a348be5da63516c0deee28d684d (diff)
Relax memory order to std::memory_order_release when releasing generation
guard.
Diffstat (limited to 'vespalib/src')
-rw-r--r--vespalib/src/vespa/vespalib/util/generationhandler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vespalib/src/vespa/vespalib/util/generationhandler.h b/vespalib/src/vespa/vespalib/util/generationhandler.h
index 69dc17cacb1..7d4b00823fa 100644
--- a/vespalib/src/vespa/vespalib/util/generationhandler.h
+++ b/vespalib/src/vespa/vespalib/util/generationhandler.h
@@ -39,7 +39,7 @@ public:
void setValid() noexcept;
bool setInvalid() noexcept;
void release() noexcept {
- _refCount.fetch_sub(2, std::memory_order_acq_rel);
+ _refCount.fetch_sub(2, std::memory_order_release);
}
GenerationHold *acquire() noexcept;
static GenerationHold *copy(GenerationHold *self) noexcept;