File tree Expand file tree Collapse file tree 1 file changed +0
-46
lines changed Expand file tree Collapse file tree 1 file changed +0
-46
lines changed Original file line number Diff line number Diff line change @@ -2349,49 +2349,3 @@ _PyCode_ConstantKey(PyObject *op)
23492349 }
23502350 return key ;
23512351}
2352-
2353- void
2354- _PyStaticCode_Fini (PyCodeObject * co )
2355- {
2356- if (co -> co_executors != NULL ) {
2357- clear_executors (co );
2358- }
2359- deopt_code (co , _PyCode_CODE (co ));
2360- PyMem_Free (co -> co_extra );
2361- if (co -> _co_cached != NULL ) {
2362- Py_CLEAR (co -> _co_cached -> _co_code );
2363- Py_CLEAR (co -> _co_cached -> _co_cellvars );
2364- Py_CLEAR (co -> _co_cached -> _co_freevars );
2365- Py_CLEAR (co -> _co_cached -> _co_varnames );
2366- PyMem_Free (co -> _co_cached );
2367- co -> _co_cached = NULL ;
2368- }
2369- co -> co_extra = NULL ;
2370- if (co -> co_weakreflist != NULL ) {
2371- PyObject_ClearWeakRefs ((PyObject * )co );
2372- co -> co_weakreflist = NULL ;
2373- }
2374- free_monitoring_data (co -> _co_monitoring );
2375- co -> _co_monitoring = NULL ;
2376- }
2377-
2378- int
2379- _PyStaticCode_Init (PyCodeObject * co )
2380- {
2381- int res = intern_strings (co -> co_names );
2382- if (res < 0 ) {
2383- return -1 ;
2384- }
2385- res = intern_string_constants (co -> co_consts , NULL );
2386- if (res < 0 ) {
2387- return -1 ;
2388- }
2389- res = intern_strings (co -> co_localsplusnames );
2390- if (res < 0 ) {
2391- return -1 ;
2392- }
2393- _PyCode_Quicken (co );
2394- return 0 ;
2395- }
2396-
2397- #define MAX_CODE_UNITS_PER_LOC_ENTRY 8
You can’t perform that action at this time.
0 commit comments