From 96fc9a25376c29ab85ed881a087119b597bf61f4 Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Fri, 9 Jan 2015 21:01:34 +0000 Subject: [PATCH] [sanitizer] use the right memory order llvm-svn: 225546 --- compiler-rt/lib/sanitizer_common/sanitizer_allocator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h b/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h index 8ff3f20..b5105f8 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h @@ -1318,7 +1318,7 @@ class CombinedAllocator { } bool RssLimitIsExceeded() { - return atomic_load(&rss_limit_is_exceeded_, memory_order_release); + return atomic_load(&rss_limit_is_exceeded_, memory_order_acquire); } void SetRssLimitIsExceeded(bool rss_limit_is_exceeded) { -- 2.7.4