Closed ramosian-glider closed 9 years ago
I guess we need to flip m->chunk_state with "LOCK XCHG"
at the very beginning of __asan::Deallocate()
Dmitry, WDYT?
Reported by konstantin.s.serebryany
on 2012-03-28 18:43:01
Like this http://codereview.appspot.com/5944044/diff/1/asan_allocator.cc
Timur/Eugeni, plese advice how to implement atomic exchange on Windows and Android.
Reported by konstantin.s.serebryany
on 2012-03-28 20:59:54
It more depends on the compiler. LLVM should support __sync_xxx everywhere.
On windows it may support _InterlockedExchange as well.
Reported by dvyukov@google.com
on 2012-03-29 03:54:45
__sync_xxx support depends on the runtime library. AFAIK, on Android it either does
not work, or did not work some time ago.
Reported by eugenis@google.com
on 2012-03-29 12:29:13
__sync_val_compare_and_swap seems to be working
Reported by eugenis@google.com
on 2012-03-29 12:39:12
Should be fixed by LLVM r154097
Reported by konstantin.s.serebryany
on 2012-04-05 15:57:10
Fixed
Adding Project:AddressSanitizer as part of GitHub migration.
Reported by ramosian.glider
on 2015-07-30 09:12:58
Originally reported on Google Code with ID 57
Reported by
konstantin.s.serebryany
on 2012-03-28 18:34:55