-
-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
gh-116322: Add Py_mod_gil module slot #116882
Merged
Merged
Commits on Mar 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for fa92cb4 - Browse repository at this point
Copy the full SHA fa92cb4View commit details
Commits on Mar 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7edf796 - Browse repository at this point
Copy the full SHA 7edf796View commit details
Commits on Apr 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 450aa41 - Browse repository at this point
Copy the full SHA 450aa41View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6bbd281 - Browse repository at this point
Copy the full SHA 6bbd281View commit details
Commits on Apr 15, 2024
-
Fix enabling the GIL, also support disabling the GIL
More details: - Fix a race while enabling the GIL by checking if the GIL was enabled between a no-op call to `_PyEval_AcquireLock()` and the thread attaching, and trying again if it was. - Enable the GIL before running a module init function, since we can't know if it's a single-phase init module that doesn't support free-threading. Look at the state of the module after initialization to determine if it's safe to disable the GIL again. - Add `PyModule_SetGIL()`, which can be used by single-phase init modules to declare that they support running without the GIL. - Change `gil->enabled` from a simple on/off switch to a count of active requests to enable the GIL. This allows us to support multiple interleaved imports that each independently track whether the GIL should remain enabled. See the big comment in `pycore_ceval.h` for more details.
Configuration menu - View commit details
-
Copy full SHA for 47b9e26 - Browse repository at this point
Copy the full SHA 47b9e26View commit details -
Configuration menu - View commit details
-
Copy full SHA for f7c3e50 - Browse repository at this point
Copy the full SHA f7c3e50View commit details -
Fix module size in test_objecttypes
Also fix the module format string for normal builds, since it only contains pointers (no `size_t`).
Configuration menu - View commit details
-
Copy full SHA for 6c198e4 - Browse repository at this point
Copy the full SHA 6c198e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 554c5b4 - Browse repository at this point
Copy the full SHA 554c5b4View commit details
Commits on Apr 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for cd187a0 - Browse repository at this point
Copy the full SHA cd187a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8057478 - Browse repository at this point
Copy the full SHA 8057478View commit details
Commits on Apr 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a8f0943 - Browse repository at this point
Copy the full SHA a8f0943View commit details
Commits on May 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for bbb949e - Browse repository at this point
Copy the full SHA bbb949eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f1205e - Browse repository at this point
Copy the full SHA 7f1205eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f8b02b3 - Browse repository at this point
Copy the full SHA f8b02b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for d2bad05 - Browse repository at this point
Copy the full SHA d2bad05View commit details -
Configuration menu - View commit details
-
Copy full SHA for d7d59f0 - Browse repository at this point
Copy the full SHA d7d59f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for ccd6e00 - Browse repository at this point
Copy the full SHA ccd6e00View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8846586 - Browse repository at this point
Copy the full SHA 8846586View commit details -
Configuration menu - View commit details
-
Copy full SHA for 99bc5cb - Browse repository at this point
Copy the full SHA 99bc5cbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6882c13 - Browse repository at this point
Copy the full SHA 6882c13View commit details -
Configuration menu - View commit details
-
Copy full SHA for da63df1 - Browse repository at this point
Copy the full SHA da63df1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2998def - Browse repository at this point
Copy the full SHA 2998defView commit details
Commits on May 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 77d1652 - Browse repository at this point
Copy the full SHA 77d1652View commit details
Commits on May 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d1fe0cc - Browse repository at this point
Copy the full SHA d1fe0ccView commit details
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.