Skip to content

Commit 2b54d9c

Browse files
committed
gh-154577: Fix data race in Modules/cjkcodecs/multibytecodec.c
Prevent race by adding `@critical_section` to functions that have `MultibyteIncrementalEncoderObject` or `MultibyteIncrementalDecoderObject` argument Fix TSAN-0001 from gh-153852
1 parent 6e98393 commit 2b54d9c

3 files changed

Lines changed: 96 additions & 23 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix data race of `MultibyteIncrementalEncoderObject` and
2+
`MultibyteIncrementalDecoderObject`

Modules/cjkcodecs/clinic/multibytecodec.c.h

Lines changed: 64 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)