MCPcopy Index your code
hub / github.com/python/cpython / _managed_dict_offset

Function _managed_dict_offset

Tools/gdb/libpython.py:72–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70 return gdb.lookup_type('void').pointer().sizeof
71
72def _managed_dict_offset():
73 # See pycore_object.h
74 pyobj = gdb.lookup_type("PyObject")
75 if any(field.name == "ob_ref_local" for field in pyobj.fields()):
76 return -1 * _sizeof_void_p()
77 else:
78 return -3 * _sizeof_void_p()
79
80_INTERP_FRAME_HAS_TLBC_INDEX = None
81def interp_frame_has_tlbc_index():

Callers 2

get_attr_dictMethod · 0.85
get_keys_valuesMethod · 0.85

Calls 3

_sizeof_void_pFunction · 0.85
fieldsMethod · 0.80
anyFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…