Skip to content

Move assert() inside lock to avoid data race. - #131126

Closed
nascheme wants to merge 1 commit into
python:mainfrom
nascheme:setup_trace_assert_race_fix
Closed

Move assert() inside lock to avoid data race.#131126
nascheme wants to merge 1 commit into
python:mainfrom
nascheme:setup_trace_assert_race_fix

Conversation

@nascheme

Copy link
Copy Markdown
Member

We need to hold the lock to safely read the tstate->interp->sys_tracing_threads value.

We need to hold the lock to safely read the
`tstate->interp->sys_tracing_threads` value.
@nascheme

Copy link
Copy Markdown
MemberAuthor

Already applied in GH-131561.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip issueskip newstopic-free-threadingtype-bugAn unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@nascheme