diff options
| author | Kostya Serebryany <kcc@google.com> | 2012-04-05 15:55:09 +0000 |
|---|---|---|
| committer | Kostya Serebryany <kcc@google.com> | 2012-04-05 15:55:09 +0000 |
| commit | 7a8f5e4d1edaba944ed5174d6d22da692dd9b7f0 (patch) | |
| tree | c24eafded12f3fd1c753443455c318e492893c23 /compiler-rt/lib/asan/asan_internal.h | |
| parent | d6825173d35e2506682784f0981be506c5fd7db7 (diff) | |
| download | bcm5719-llvm-7a8f5e4d1edaba944ed5174d6d22da692dd9b7f0.tar.gz bcm5719-llvm-7a8f5e4d1edaba944ed5174d6d22da692dd9b7f0.zip | |
[asan] make __asan::Deallocate immune to racy double-free (issue #57)
llvm-svn: 154097
Diffstat (limited to 'compiler-rt/lib/asan/asan_internal.h')
| -rw-r--r-- | compiler-rt/lib/asan/asan_internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/lib/asan/asan_internal.h b/compiler-rt/lib/asan/asan_internal.h index 39d3adf07a6..3a25cf285f9 100644 --- a/compiler-rt/lib/asan/asan_internal.h +++ b/compiler-rt/lib/asan/asan_internal.h @@ -187,6 +187,7 @@ void InstallSignalHandlers(); 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)); |

