We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2620394 commit 5c22d13Copy full SHA for 5c22d13
Python/optimizer.c
@@ -805,7 +805,9 @@ translate_bytecode_to_trace(
805
if (opcode == CALL_ALLOC_AND_ENTER_INIT) {
806
// In CALL_ALLOC_AND_ENTER_INIT, func_version is actually the type version.
807
PyTypeObject *typ = _PyType_LookupByVersion(func_version);
808
- if (typ == NULL || !PyType_HasFeature(typ, Py_TPFLAGS_HEAPTYPE)) {
+ if (typ == NULL ||
809
+ !PyType_HasFeature(typ, Py_TPFLAGS_HEAPTYPE) ||
810
+ !PyType_HasFeature(typ, Py_TPFLAGS_INLINE_VALUES)) {
811
DPRINTF(2, "Bailing due to dynamic target\n");
812
ADD_TO_TRACE(uop, oparg, 0, target);
813
ADD_TO_TRACE(_EXIT_TRACE, 0, 0, 0);
0 commit comments