|
Meta tags:
description=Clear the following PyTypeObject members of builtin static types in
Py_Finalize():
tp_bases
tp_cache
tp_dict
tp_mro
tp_subclasses
Finalize static types initialized by _PyStaticTypes_Init() and
builtin exceptions initialized by _PyExc_Init().
Once a static type is finalized, it must no longer be used.
Use assert(!_PyStaticType_IsFinalized(type)); to ensure that static
type is not finalized.
With this change, Valgrind log:
possibly lost: 612,326 bytes in 5,503 blocks
becomes:
possibly lost: 369,346 bytes in 2,805 blocks
Changes:
Rename _PyTypes_Init() to _PyStaticTypes_Init().
Move _PyExc_Fini() call inside finalize_interp_types().
htt????/bugs.python.org/issue1635741;
Headings (most frequently used words):
navigation, uh, oh, wip, bpo, 1635741, py_finalize, finalizes, builtin, static, types, 20763, footer, diff, view, menu, repository, there, are, no, files, selected, for, viewing, filter, by, extension,
Text of the page (most frequently used words):
_pystatictype_fini (135), file (43), type (33), expand (24), line (21), this (19), the (19), that (18), void (18), hidden (18), characters (18), unicode (18), github (16), show (15), and (15), static (14), diff (14), open (13), pytypeobject (13), down (12), number (12), bidirectional (12), extern (12), applied (11), tstate (11), changes (10), int (10), for (10), types (9), pystatus (9), status (8), comments (8), all (8), learn (8), about (8), view (8), _pystatictype_isfinalized (8), pyobject (8), reload (8), you (7), suggestion (7), cannot (7), suggestions (7), while (7), change (7), code (7), return (7), what (7), review (7), more (7), assert (7), objects (7), sign (7), pythreadstate (6), original (6), contains (6), text (6), may (6), interpreted (6), compiled (6), differently (6), than (6), appears (6), below (6), editor (6), reveals (6), desktop (6), delete (6), edit (6), python (6), additions (6), py_clear (6), object (6), not (5), security (5), must (5), commit (5), is_main_interp (5), builtin (5), include (5), internal (5), loading (5), your (5), can (4), please (4), pull (4), from (4), _pystatictypes_init (4), _pytypes_init (4), deletions (4), endif (4), const (4), exceptions (4), was (4), there (4), files (4), vstinner (4), wip (4), bpo (4), 1635741 (4), py_finalize (4), finalizes (4), support (4), copilot (4), community (3), navigation (3), request (3), add (3), batch (3), one (3), closed (3), _pyexc_fini (3), used (3), _pystatictypes_fini (3), pylifecycle (3), tp_flags (3), tp_dict (3), char (3), finalized (3), typeobject (3), finalize (3), pycore_pylifecycle (3), pycore_object (3), hide (3), whitespace (3), error (3), page (3), filter (3), commits (3), 20763 (3), account (3), quality (3), another (3), tab (3), window (3), refresh (3), session (3), developers (3), changelog (3), customer (3), enterprise (3), grade (3), features (3), build (3), contact (2), privacy (2), terms (2), footer (2), check (2), merge (2), single (2), only (2), viewing (2), toggle (2), finalize_interp_types (2), after (2), longer (2), 1253 (2), _pystatus_exception (2), 586 (2), base (2), test (2), py_tpflags_ready (2), clear (2), py_tpflags_heaptype (2), pytype_ready (2), its (2), heap (2), else (2), null (2), ifndef (2), ndebug (2), undef (2), 173 (2), _pytype_checkconsistency (2), initialized (2), 1818 (2), _pytypes_initslotdefs (2), 1731 (2), deletion (2), always (2), 2740 (2), call (2), pyapi_func (2), selected (2), apply (2), split (2), unified (2), failed (2), load (2), retry (2), jump (2), nbsp (2), extension (2), tree (2), issue (2), insights (2), projects (2), actions (2), repository (2), cpython (2), signed (2), with (2), universe (2), training (2), integrations (2), stories (2), center (2), documentation (2), business (2), fixes (2), products (2), secret (2), perform, action, time, share, personal, information, manage, cookies, docs, 2026, inc, right, now, back, later, queued, multi, pending, reviews, has, been, marked, resolved, outdated, existing, order, create, valid, applying, deleted, lines, supported, per, subset, invalid, because, were, made, annotations, notes, pygrammar_removeaccelerators, _pyparser_grammar, 1302, 1308, finalize_interp_clear, _pycontext_fini, _pyasyncgen_fini, _pyframe_fini, point, flush_std_files, pycore_init_types, add_subclass, works, expected, flag, tp_subclasses, tp_cache, tp_mro, tp_bases, _py_forgetreference, ifdef, py_trace_refs, 5593, 5619, py_ssize_t, dict, bases, 5362, 5386, add_operators, want, itself, accept, argument, form, 27157, special, case, should, py_type, _pyerr_occurred, caller, loses, exception, 983, 1006, type_call, args, kwds, _pytype_docwithoutsignature, name, internal_doc, assume, still, accessible, sets, _pyruntimestate_getfinalizing, _pyruntime, _py_newreference, pytype_clearcache, pybaseobject_type, pytype_type, finish, core, _pyinterpreterid_type, _pycorowrapper_type, pycoro_type, pypicklebuffer_type, pyseqiter_type, pycalliter_type, pymethoddescr_type, pyclassmethoddescr_type, pyinstancemethod_type, pycell_type, pylongrangeiter_type, pycapsule_type, _pynamespace_type, pymemberdescr_type, pyellipsis_type, _pymethodwrapper_type, pywrapperdescr_type, pygetsetdescr_type, pygen_type, pydictproxy_type, pyfunction_type, pymethod_type, pycmethod_type, pycfunction_type, pyframe_type, pycode_type, pystdprinter_type, pyreversed_type, pyenum_type, pytuple_type, pymemoryview_type, _pymanagedbuffer_type, pyproperty_type, pyfrozenset_type, pyfloat_type, pycomplex_type, pystaticmethod_type, pyslice_type, pyunicode_type, pyset_type, pyodictiter_type, pyodictvalues_type, pyodictitems_type, pyodictkeys_type, pyodict_type, pydictreviteritem_type, pydictrevitervalue_type, pydictreviterkey_type, pydictitems_type, pydictvalues_type, pydictkeys_type, pydict_type, pyrange_type, pysuper_type, pytraceback_type, _pynotimplemented_type, _pynone_type, pylist_type, pybytes_type, pybytearray_type, pybool_type, pylong_type, _pyweakref_proxytype, _pyweakref_callableproxytype, _pyweakref_reftype, _py_notimplementedstruct, helper, equivalent, raise, but, using, _pyexc_timeouterror, _pyexc_processlookuperror, _pyexc_permissionerror, _pyexc_interruptederror, _pyexc_notadirectoryerror, _pyexc_isadirectoryerror, _pyexc_filenotfounderror, _pyexc_fileexistserror, _pyexc_connectionreseterror, _pyexc_connectionrefusederror, _pyexc_connectionabortederror, _pyexc_childprocesserror, _pyexc_brokenpipeerror, _pyexc_blockingioerror, _pyexc_connectionerror, _pyexc_resourcewarning, _pyexc_byteswarning, _pyexc_unicodewarning, _pyexc_importwarning, _pyexc_futurewarning, _pyexc_runtimewarning, _pyexc_syntaxwarning, _pyexc_pendingdeprecationwarning, _pyexc_deprecationwarning, _pyexc_userwarning, _pyexc_warning, _pyexc_buffererror, _pyexc_memoryerror, _pyexc_referenceerror, _pyexc_systemerror, _pyexc_zerodivisionerror, _pyexc_overflowerror, _pyexc_floatingpointerror, _pyexc_arithmeticerror, _pyexc_assertionerror, _pyexc_unicodetranslateerror, _pyexc_unicodedecodeerror, _pyexc_unicodeencodeerror, _pyexc_unicodeerror, _pyexc_valueerror, _pyexc_keyerror, _pyexc_indexerror, _pyexc_lookuperror, _pyexc_taberror, _pyexc_indentationerror, _pyexc_syntaxerror, _pyexc_attributeerror, _pyexc_unboundlocalerror, _pyexc_nameerror, _pyexc_notimplementederror, _pyexc_recursionerror, _pyexc_runtimeerror, _pyexc_eoferror, _pyexc_oserror, _pyexc_modulenotfounderror, _pyexc_importerror, _pyexc_keyboardinterrupt, _pyexc_systemexit, _pyexc_generatorexit, _pyexc_stopiteration, _pyexc_stopasynciteration, _pyexc_typeerror, _pyexc_exception, _pyexc_baseexception, errnomap, free_preallocated_memerrors, _pyexc_init, init_alias, _pybuiltins_addexceptions, bltinmod, _pygc_init, _pyimportzip_init, _py_hashrandomization_init, pyconfig, _pyfloat_init, _pyimporthooks_init, tracked, collector, safe, tell, track, usage, called, use, ensure, once, _pydict_checkconsistency, check_content, are, conversations, filters, viewed, jun, 2020, 530ccbf, select, changed, checks, conversation, wants, into, pystatictype_fini, master, already, clicking, agree, our, occasionally, send, related, emails, statement, service, free, maintainers, have, question, project, new, items, requests, issues, message, dismiss, alert, switched, accounts, out, appearance, settings, search, pricing, event, talks, workshops, next, partners, company, forum, events, webinars, blog, resource, connect, resources, premium, advanced, ons, trust, why, evaluate, see, industries, government, manufacturing, financial, services, healthcare, industry, nonprofits, startups, team, enterprises, stage, businesses, source, latest, improvements, across, place, developer, articles, sponsors, trending, repos, explore, customize, certifications, scanning, leak, prevention, protection, vulnerability, detection, remediation, secure, cloud, development, environments, codespaces, analysis, enforcement, automation, ship, coding, agent, tasks, automated, work, hosting, collaboration, platform, menu, skip, content,
|