-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
gh-127266: avoid data races when updating type slots #131174
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
0e995ad
wip: update type slots, stop-the-world
nascheme b173f17
Remove unneeded atomics for tp_flags.
nascheme d4ce112
Use stop-the-world for tp_flag changes too.
nascheme 44eb332
Remove 'world_stops' and 'sys._get_world_stops'.
nascheme d132fab
Improve code comments.
nascheme 658bcd5
Remove TSAN suppressions that seem unneeded.
nascheme ef2f07b
Add NEWS file.
nascheme ce8536d
Use mutex rather than critical sections.
nascheme b97a4b4
Merge 'origin/main' into gh-127266-type-slots-ts
nascheme ca00e74
Fix non-debug build.
nascheme 6db4542
Improve comments.
nascheme 398ac14
Merge 'origin/main' into gh-127266-type-slots-ts
nascheme 75d6b71
Avoid unused function warning.
nascheme 895a86a
Remove unwanted suppression (bad merge).
nascheme 65e40f4
Fixes based on review feedback.
nascheme b68f1a1
Remove spurious assert().
nascheme 9976b32
Merge 'origin/main' into gh-127266-type-slots-ts
nascheme 1b84486
Omit mutex_tid member from default build.
nascheme 2af9e49
Remove Py_TPFLAGS_EXPOSED flag and related logic.
nascheme f65e87c
Improve comment for TYPE_LOCK.
nascheme 395a6d3
Re-add the ASSERT_NEW_OR_STOPPED() asserts.
nascheme e4f87e5
Further cleanups of the locking in typeobject.
nascheme 2a66555
Fix data race in resolve_slotdups().
nascheme 2efac26
Fix comment.
nascheme f7d2d36
Make the init of tp_dict thread-safe.
nascheme f3fd35a
Do some addtional locking simplification.
nascheme 57c2a44
Avoid acquiring the types mutex if version is set.
nascheme 7c0ccf5
Add check_invalid_reentrancy() call.
nascheme 4fa77bb
Fix additional re-entrancy issues found.
nascheme caf6554
Add comment explaining class_name() code.
nascheme 803d703
Merge 'origin/main' into gh-127266-type-slots-ts
nascheme 90ea541
Use atomic load to avoid thread safety issue.
nascheme 0dc0faf
Fix default debug build.
nascheme 956e5d1
Move declaration to avoid syntax error.
nascheme 2bb710c
Remove _PyType_GetVersionForCurrentState, unused.
nascheme 3a9bc96
Fix for possible re-entrancy in has_custom_mro().
nascheme d742a53
Use correct FT_ATOMIC_ macro.
nascheme e7480c3
Remove TSAN suppression for 'assign_version_tag'.
nascheme e2ea281
Small efficiency fix for types_mutex_set_owned().
nascheme 935bfca
Revert to using critical section with TYPE_LOCK.
nascheme 1cff448
Merge 'origin/main' into gh-127266-type-slots-ts
nascheme a81e9e3
Invalidate type cache before calling watchers.
nascheme f5df0c3
Fixes for type_modified_unlocked().
nascheme 7db281c
Major re-work, TYPE_LOCK protects more things.
nascheme da2a0ad
Merge 'origin/main' into gh-127266-type-slots-ts
nascheme 986f23a
Fix non-debug build.
nascheme c404ed4
Revert unneeded code changes.
nascheme 55af4ba
Merge branch 'origin/main' into gh-127266-type-slots-ts
nascheme 0eb77da
Restore comment
nascheme 16f15b2
Revert more changes.
nascheme 0c328cc
Merge 'origin/main' into gh-127266-type-slots-ts
nascheme 64547e9
Reduce item list size for a few tests.
nascheme fff1bd2
Merge 'origin/main' into gh-127266-type-slots-ts
nascheme 5672352
Minor code tidy.
nascheme File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Remove TSAN suppressions that seem unneeded.
- Loading branch information
commit 658bcd52ab4a85134bed94eb6f30ce94a03924f7
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.