Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-94673: Properly Initialize and Finalize Static Builtin Types for Each Interpreter #104072

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
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
Only call static_builtin_index_clear() during runtime fini.
  • Loading branch information
ericsnowcurrently committed May 1, 2023
commit 71e52c2a89acff3fcd0e7a3de1b7bda1c49a826b
4 changes: 3 additions & 1 deletion 4 Objects/typeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ static_builtin_state_clear(PyInterpreterState *interp, PyTypeObject *self)
state->type = NULL;
assert(state->tp_weaklist == NULL); // It was already cleared out.

static_builtin_index_clear(self);
if (_Py_IsMainInterpreter(interp)) {
static_builtin_index_clear(self);
}

assert(interp->types.num_builtins_initialized > 0);
interp->types.num_builtins_initialized--;
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.