Skip to content

Commit 2fb71df

Browse files
committed
Also mention shared TLS in TestPTrace()
1 parent 8ef6bdf commit 2fb71df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,8 @@ struct ScopedSetTracerPID {
406406
// This detects whether ptrace is blocked (e.g., by seccomp), by forking and
407407
// then attempting ptrace.
408408
// This separate check is necessary because StopTheWorld() creates a child
409-
// process with a shared virtual address space, and therefore cannot use
410-
// waitpid() due to the shared errno.
409+
// process with a shared virtual address space and shared TLS, and therefore
410+
// cannot use waitpid() due to the shared errno.
411411
static void TestPTrace() {
412412
// Heuristic: only check the first time this is called. This is not always
413413
// correct (e.g., user manually triggers leak detection, then updates

0 commit comments

Comments
 (0)