mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[3.14] gh-132775: Unrevert "Add _PyCode_VerifyStateless()" (gh-133625)
This reverts commit3c73cf5
(gh-133497), which itself reverted the original commitd270bb5
(gh-133221). We reverted the original change due to failing android tests. The checks in _PyCode_CheckNoInternalState() were too strict, so we've relaxed them.
This commit is contained in:
parent
54c3aa1597
commit
c39bc81b70
8 changed files with 359 additions and 38 deletions
|
@ -56,6 +56,8 @@ extern "C" {
|
|||
|
||||
#define IS_RETURN_OPCODE(opcode) \
|
||||
(opcode == RETURN_VALUE)
|
||||
#define IS_RAISE_OPCODE(opcode) \
|
||||
(opcode == RAISE_VARARGS || opcode == RERAISE)
|
||||
|
||||
|
||||
/* Flags used in the oparg for MAKE_FUNCTION */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue