mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
gh-104584: Fix assert in DEOPT macro -- should fix buildbot (#106131)
This commit is contained in:
parent
0762775a15
commit
bb578a0c30
1 changed files with 2 additions and 1 deletions
|
@ -264,11 +264,12 @@ GETITEM(PyObject *v, Py_ssize_t i) {
|
||||||
#define UPDATE_MISS_STATS(INSTNAME) ((void)0)
|
#define UPDATE_MISS_STATS(INSTNAME) ((void)0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// NOTE: in the uops version, opcode may be > 255
|
||||||
#define DEOPT_IF(COND, INSTNAME) \
|
#define DEOPT_IF(COND, INSTNAME) \
|
||||||
if ((COND)) { \
|
if ((COND)) { \
|
||||||
/* This is only a single jump on release builds! */ \
|
/* This is only a single jump on release builds! */ \
|
||||||
UPDATE_MISS_STATS((INSTNAME)); \
|
UPDATE_MISS_STATS((INSTNAME)); \
|
||||||
assert(_PyOpcode_Deopt[opcode] == (INSTNAME)); \
|
assert(opcode >= 256 || _PyOpcode_Deopt[opcode] == (INSTNAME)); \
|
||||||
GO_TO_INSTRUCTION(INSTNAME); \
|
GO_TO_INSTRUCTION(INSTNAME); \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue