Skip to content

Commit 35dfa53

Browse files
add comment
1 parent eec3dcd commit 35dfa53

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Python/optimizer_analysis.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ lookup_super_attr(JitOptContext *ctx, _PyBloomFilter *dependencies,
468468
if (suffix != _NOP) {
469469
ADD_OP(suffix, 2, 0);
470470
}
471+
// if obj_type is immutable, then all its superclasses are immutable
471472
if ((obj_type->tp_flags & Py_TPFLAGS_IMMUTABLETYPE) == 0) {
472473
PyType_Watch(TYPE_WATCHER_ID, (PyObject *)su_type);
473474
_Py_BloomFilter_Add(dependencies, su_type);

0 commit comments

Comments
 (0)