Skip to content

Commit 0f0971d

Browse files
gh-141044: Update NEWS for TSan 12-margin stack_size floor
1 parent 1fac29a commit 0f0971d

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
Fix a reference leak when creating a :class:`threading.Thread` after
22
setting a small custom stack size with :func:`threading.stack_size` in
33
debug and sanitizer builds. Those builds need extra C stack, so
4-
:func:`!_thread.stack_size` now requires 6 stack margins (as ThreadSanitizer
5-
already did). Sizes that previously appeared to work (for example 127 KiB
6-
on 64-bit debug/ASan builds) now raise :exc:`ValueError`. Release builds
7-
are unchanged. Patch by Kailash Nelson.
4+
:func:`!_thread.stack_size` now requires 6 stack margins on debug/ASan/UBSan
5+
builds and 12 on ThreadSanitizer builds (which only use half the stack).
6+
Sizes that previously appeared to work (for example 127 KiB on 64-bit
7+
debug/ASan builds) now raise :exc:`ValueError`. Release builds are
8+
unchanged. Patch by Kailash Nelson.

0 commit comments

Comments
 (0)