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
Next Next commit
Fix copy-and-paste error
  • Loading branch information
markshannon committed Jul 7, 2025
commit ec7f0e27b9f563d6c71c73932d686986492dfb17
8000
2 changes: 1 addition & 1 deletion Python/optimizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1485,7 +1485,7 @@ _PyExecutor_GetColdExecutor(void)
// This is initialized to true so we can prevent the executor
// from being immediately detected as cold and invalidated.
cold->vm_data.warm = true;
if (_PyJIT_Compile(cold, cold->trace, length)) {
if (_PyJIT_Compile(cold, cold->trace, 1)) {
Py_DECREF(cold);
Copy link
Member
@Fidget-Spinner Fidget-Spinner Jul 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's immortal. Decrefing won't do anything. I think you mean to call the dealloc function on it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good spot. I think I need to move making it immortal to after it is fully created.

Py_FatalError("Cannot allocate core JIT code");
}
Expand Down
0