8000 GH-136410: Faster side exits by markshannon · Pull Request #136411 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-136410: Faster side exits #136411

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
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
Don't make object immortal until it is fully initialized
  • Loading branch information
markshannon committed Jul 8, 2025
commit 779bd7d9048a1f81b61f271bd66ac99ce17b1147
2 changes: 1 addition & 1 deletion Python/optimizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1477,7 +1477,6 @@ _PyExecutor_GetColdExecutor(void)
Py_FatalError("Cannot allocate core JIT code");
}
((_PyUOpInstruction *)cold->trace)->opcode = _COLD_EXIT;
_Py_SetImmortal((PyObject *)cold);
#ifdef _Py_JIT
cold->jit_code = NULL;
cold->jit_side_entry = NULL;
Expand All @@ -1490,6 +1489,7 @@ _PyExecutor_GetColdExecutor(void)
Py_FatalError("Cannot allocate core JIT code");
}
#endif
_Py_SetImmortal((PyObject *)cold);
interp->cold_executor = cold;
return cold;
}
Expand Down
Loading
0