Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 193e216

Browse files
Use immortal
1 parent ce77fe4 commit 193e216

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Python/bytecodes.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4628,12 +4628,12 @@ dummy_func(
46284628
}
46294629

46304630
tier2 pure op(_LOAD_CONST_INLINE_BORROW, (ptr/4 -- value)) {
4631-
value = PyStackRef_FromPyObjectSteal(ptr);
4631+
value = PyStackRef_FromPyObjectImmortal(ptr);
46324632
}
46334633

46344634
tier2 pure op (_POP_TOP_LOAD_CONST_INLINE_BORROW, (ptr/4, pop -- value)) {
46354635
PyStackRef_CLOSE(pop);
4636-
value = PyStackRef_FromPyObjectSteal(ptr);
4636+
value = PyStackRef_FromPyObjectImmortal(ptr);
46374637
}
46384638

46394639
tier2 pure op(_LOAD_CONST_INLINE_WITH_NULL, (ptr/4 -- value, null)) {
@@ -4642,7 +4642,7 @@ dummy_func(
46424642
}
46434643

46444644
tier2 pure op(_LOAD_CONST_INLINE_BORROW_WITH_NULL, (ptr/4 -- value, null)) {
4645-
value = PyStackRef_FromPyObjectSteal(ptr);
4645+
value = PyStackRef_FromPyObjectImmortal(ptr);
46464646
null = PyStackRef_NULL;
46474647
}
46484648

Python/executor_cases.c.h

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

0 commit comments

Comments
 (0)