gh-125323: Remove some unsafe Py_DECREFs in bytecodes.c, replacing them with PyStackRef_CLOSEs (GH-125324)

This commit is contained in:
Ken Jin 2024-10-14 16:17:51 +08:00 committed by GitHub
parent b52c7306ea
commit 4b358ee647
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 65 additions and 60 deletions

View file

@ -116,6 +116,7 @@ class Emitter:
"SAVE_STACK": self.save_stack,
"RELOAD_STACK": self.reload_stack,
"PyStackRef_CLOSE": self.stackref_close,
"PyStackRef_CLOSE_SPECIALIZED": self.stackref_close,
"PyStackRef_AsPyObjectSteal": self.stackref_steal,
"DISPATCH": self.dispatch
}