Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
Improve comment wording in pycore_runtime.h accessors
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
  • Loading branch information
gpshead and claude committed Mar 22, 2026
commit efeae3ba35556f36a6e58497b53ffdf5052e23a6
4 changes: 2 additions & 2 deletions Include/internal/pycore_runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ _PyRuntimeState_SetFinalizing(_PyRuntimeState *runtime, PyThreadState *tstate) {
}
}

// Use acquire/release (not relaxed) because these are publication flags:
// when a reader sees 1, all prior initialization writes must be visible.
// Release on store, acquire on load: a thread that reads initialized=1
Comment thread
gpshead marked this conversation as resolved.
Outdated
// is guaranteed to observe all writes from the initialization sequence.

static inline int
_PyRuntimeState_GetCoreInitialized(_PyRuntimeState *runtime) {
Expand Down
Loading