From 70be91d6b8099bdc57fd20ce3f7c60b4efb15f72 Mon Sep 17 00:00:00 2001 From: daan Date: Wed, 22 Jul 2020 15:28:14 -0700 Subject: [PATCH] reduce tsan warning by ensuring a require edge; issue #130 --- src/segment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/segment.c b/src/segment.c index d53ecfd1..8a5ba8c0 100644 --- a/src/segment.c +++ b/src/segment.c @@ -978,7 +978,7 @@ static mi_segment_t* mi_abandoned_pop(void) { mi_atomic_increment(&abandoned_readers); // ensure no segment gets decommitted mi_tagged_segment_t next = 0; do { - ts = mi_atomic_read_relaxed(&abandoned); + ts = mi_atomic_read(&abandoned); segment = mi_tagged_segment_ptr(ts); if (segment != NULL) { next = mi_tagged_segment(segment->abandoned_next, ts); // note: reads the segment's `abandoned_next` field so should not be decommitted