File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -496,7 +496,7 @@ struct _py_func_state {
496496
497497/* For now we hard-code this to a value for which we are confident
498498 all the static builtin types will fit (for all builds). */
499- #define _Py_MAX_MANAGED_STATIC_BUILTIN_TYPES 201
499+ #define _Py_MAX_MANAGED_STATIC_BUILTIN_TYPES 202
500500#define _Py_MAX_MANAGED_STATIC_EXT_TYPES 10
501501#define _Py_MAX_MANAGED_STATIC_TYPES \
502502 (_Py_MAX_MANAGED_STATIC_BUILTIN_TYPES + _Py_MAX_MANAGED_STATIC_EXT_TYPES)
Original file line number Diff line number Diff line change @@ -3009,9 +3009,10 @@ module_exec(PyObject *module)
30093009 return 1 ;
30103010 }
30113011
3012+ unsigned long threshold = interp -> opt_config .jump_backward_initial_value + 2 ;
30123013 if (PyModule_Add (module , "TIER2_THRESHOLD" ,
30133014 // + 1 more due to one loop spent on tracing.
3014- PyLong_FromLong (interp -> opt_config . jump_backward_initial_value + 2 )) < 0 ) {
3015+ PyLong_FromLong (threshold )) < 0 ) {
30153016 return 1 ;
30163017 }
30173018
You can’t perform that action at this time.
0 commit comments