Skip to content

Commit 9215b43

Browse files
committed
Address code review
1 parent 8c296a2 commit 9215b43

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Include/internal/pycore_interp_structs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

Modules/_testinternalcapi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)