Skip to content

Commit 9673f78

Browse files
committed
Combine incref/steal into new stackref
1 parent 9755562 commit 9673f78

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

Python/bytecodes.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2254,8 +2254,7 @@ dummy_func(
22542254
DEOPT_IF(true);
22552255
}
22562256
STAT_INC(LOAD_ATTR, hit);
2257-
Py_INCREF(attr_o);
2258-
attr = PyStackRef_FromPyObjectSteal(attr_o);
2257+
attr = PyStackRef_FromPyObjectNew(attr_o);
22592258
UNLOCK_OBJECT(dict);
22602259
null = PyStackRef_NULL;
22612260
DECREF_INPUTS();

Python/executor_cases.c.h

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/generated_cases.c.h

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)