| commit | f1e82b8fda94535e9a646fc5fe394d9883ccfa2c | [log] [tgz] |
|---|---|---|
| author | Kostya Serebryany <kcc@google.com> | Thu Apr 05 15:55:09 2012 +0000 |
| committer | Kostya Serebryany <kcc@google.com> | Thu Apr 05 15:55:09 2012 +0000 |
| tree | 0464342111e21620338f2337583c644dd4ff1ecc | |
| parent | f03d8afc8b8dd072c4e2884a7475ee28ac5f3f41 [diff] [blame] |
[asan] make __asan::Deallocate immune to racy double-free (issue #57) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@154097 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/asan/asan_internal.h b/lib/asan/asan_internal.h index 39d3adf..3a25cf2 100644 --- a/lib/asan/asan_internal.h +++ b/lib/asan/asan_internal.h
@@ -187,6 +187,7 @@ int GetPid(); uintptr_t GetThreadSelf(); int AtomicInc(int *a); +uint16_t AtomicExchange(uint16_t *a, uint16_t new_val); // Wrapper for TLS/TSD. void AsanTSDInit(void (*destructor)(void *tsd));