-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
gh-117657: Fix some races in tracebacks #121748
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
Changes from 1 commit
6cb8897
5bc855c
da8415d
ef99cb9
951a34d
6e0e176
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2360,10 +2360,10 @@ new_reference(PyObject *op) | |
#if !defined(Py_GIL_DISABLED) | ||
op->ob_refcnt = 1; | ||
#else | ||
op->ob_tid = _Py_ThreadId(); | ||
_Py_atomic_store_uintptr_release(&op->ob_tid, _Py_ThreadId()); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think we want to do this, at least not for now. I want to wait until we fix all the other races before we address The "release" memory order is also stronger (and more expensive on arm64) than necessary. |
||
op->_padding = 0; | ||
op->ob_mutex = (PyMutex){ 0 }; | ||
op->ob_gc_bits = 0; | ||
_Py_atomic_store_uint8_release(&op->ob_gc_bits, 0); | ||
_Py_atomic_store_uint32_release(&op->ob_ref_local, 1); | ||
_Py_atomic_store_ssize_release(&op->ob_ref_shared, 0); | ||
#endif | ||
|
Uh oh!
There was an error while loading. Please reload this page.