[ASan] Allow Ref<> to be swapped
Created attachment 336529 [details] Patch
<rdar://problem/36336787>
Comment on attachment 336529 [details] Patch I think you also need to un poison assignToHashTableEmptyValue and replace.
Comment on attachment 336529 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=336529&action=review > Source/WTF/wtf/Ref.h:173 > +#if ASAN_ENABLED > + if (__asan_address_is_poisoned(this)) > + __asan_unpoison_memory_region(this, sizeof(*this)); > +#endif > Ref movedReference = WTFMove(reference); Too much indentation. > Source/WTF/wtf/Ref.h:185 > +#if ASAN_ENABLED > + if (__asan_address_is_poisoned(this)) > + __asan_unpoison_memory_region(this, sizeof(*this)); > +#endif Here too.
Created attachment 336531 [details] Patch
Comment on attachment 336531 [details] Patch r=me
Committed r229985: <https://trac.webkit.org/changeset/229985>