[compiler-rt] r225546 - [sanitizer] use the right memory order
Kostya Serebryany
kcc at google.com
Fri Jan 9 13:01:35 PST 2015
Author: kcc
Date: Fri Jan 9 15:01:34 2015
New Revision: 225546
URL: http://llvm.org/viewvc/llvm-project?rev=225546&view=rev
Log:
[sanitizer] use the right memory order
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_allocator.h
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_allocator.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_allocator.h?rev=225546&r1=225545&r2=225546&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_allocator.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_allocator.h Fri Jan 9 15:01:34 2015
@@ -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) {
More information about the llvm-commits
mailing list