Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-140260: Fix data race in _struct module initialization with subinterpreters#140909

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
ashm-dev wants to merge18 commits intopython:main
base:main
Choose a base branch
Loading
fromashm-dev:tsan
Open
Changes from1 commit
Commits
Show all changes
18 commits
Select commitHold shift + click to select a range
243b5f0
Fix data race in _struct module endian table initialization
ashm-devNov 2, 2025
4c9892e
fix doc
ashm-devNov 2, 2025
95958e8
refactor(c-analyzer): add endian_tables_init_once to globals-to-fix list
ashm-devNov 2, 2025
3130512
Use Py_UNUSED for unused arg in init_endian_tables
ashm-devNov 2, 2025
d33514b
fix: remove duplicate include of pycore_lock.h in _struct.c
ashm-devNov 2, 2025
c4f577f
add test
ashm-devNov 3, 2025
238c40e
Remove return check for endian table init
ashm-devNov 3, 2025
f4d24ff
Use InterpreterPoolExecutor in struct tests
ashm-devNov 3, 2025
2977abf
Ignore return value of _PyOnceFlag_CallOnce
ashm-devNov 3, 2025
5e6b45b
Move endian_tables_init_once to ignored.tsv
ashm-devNov 3, 2025
4492520
Import InterpreterPoolExecutor locally in test
ashm-devNov 3, 2025
a1caec9
Skip subinterpreter init test unless GIL disabled
ashm-devNov 3, 2025
f1cf169
Inline exec and wrap skipUnless args
ashm-devNov 5, 2025
1408896
Skip test when InterpreterPoolExecutor missing
ashm-devNov 5, 2025
359ae9a
Fix executor.map usage in test_struct
ashm-devNov 5, 2025
47494a4
Pass exec to executor.map
ashm-devNov 5, 2025
93830ea
Merge branch 'main' into tsan
ZeroIntensityNov 5, 2025
434dbab
Merge branch 'main' into tsan
kumaraditya303Nov 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Use Py_UNUSED for unused arg in init_endian_tables
  • Loading branch information
@ashm-dev
ashm-dev committedNov 2, 2025
commit3130512dbb51d37de1f5e64bb26bd70a9fc2f50c
4 changes: 1 addition & 3 deletionsModules/_struct.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1510,10 +1510,8 @@ static formatdef lilendian_table[] = {
static _PyOnceFlag endian_tables_init_once = {0};

static int
init_endian_tables(void *arg)
init_endian_tables(void *Py_UNUSED(arg))
{
(void)arg; // Unused but required by _Py_once_fn_t signature

const formatdef *native = native_table;
formatdef *other, *ptr;
#if PY_LITTLE_ENDIAN
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp