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
edit a comment
  • Loading branch information
neonene committed Sep 17, 2024
commit 97cfc1454bc7ce8c5fa3b4fe9627b9e46cbf3fd5
3 changes: 2 additions & 1 deletion Objects/typeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -5377,7 +5377,8 @@ PyType_GetBaseByToken(PyTypeObject *type, void *token, PyTypeObject **result)
} while (0)

if (result == NULL) {
// It is best for this PGO performance to isolate the layout check
// If we check the `result` only here, the subsequent branches
// will become trivial to optimize.
return check_base_by_token(type, token);
}
if (token == NULL || !PyType_Check(type)) {
Expand Down