[PATCH] D92415: [GWP-ASan] Fix flaky test on Fuchsia
Kostya Kortchinsky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 1 14:39:22 PST 2020
cryptoad updated this revision to Diff 308777.
cryptoad added a comment.
Updating the CL with another proposed fix: reseting the TLS data in
the uninit function called by the tests.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92415/new/
https://reviews.llvm.org/D92415
Files:
compiler-rt/lib/gwp_asan/guarded_pool_allocator.cpp
Index: compiler-rt/lib/gwp_asan/guarded_pool_allocator.cpp
===================================================================
--- compiler-rt/lib/gwp_asan/guarded_pool_allocator.cpp
+++ compiler-rt/lib/gwp_asan/guarded_pool_allocator.cpp
@@ -148,6 +148,7 @@
State.PageSize));
FreeSlots = nullptr;
}
+ *getThreadLocals() = ThreadLocalPackedVariables();
}
void *GuardedPoolAllocator::allocate(size_t Size) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92415.308777.patch
Type: text/x-patch
Size: 441 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201201/adfb2222/attachment-0001.bin>
More information about the llvm-commits
mailing list