File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -65,15 +65,15 @@ struct _stoptheworld_state {
65
65
specific optimizations. */
66
66
typedef struct _rare_events {
67
67
/* Setting an
8000
object's class, obj.__class__ = ... */
68
- uint8_t set_class ;
68
+ uint16_t set_class ;
69
69
/* Setting the bases of a class, cls.__bases__ = ... */
70
- uint8_t set_bases ;
70
+ uint16_t set_bases ;
71
71
/* Setting the PEP 523 frame eval function, _PyInterpreterState_SetFrameEvalFunc() */
72
- uint8_t set_eval_frame_func ;
72
+ uint16_t set_eval_frame_func ;
73
73
/* Modifying the builtins, __builtins__.__dict__[var] = ... */
74
- uint8_t builtin_dict ;
74
+ uint16_t builtin_dict ;
75
75
/* Modifying a function, e.g. func.__defaults__ = ..., etc. */
76
- uint8_t func_modification ;
76
+ uint16_t func_modification ;
77
77
} _rare_events ;
78
78
79
79
/* interpreter state */
@@ -376,7 +376,7 @@ PyAPI_FUNC(PyStatus) _PyInterpreterState_New(
376
376
#define RARE_EVENT_INTERP_INC (interp , name ) \
377
377
do { \
378
378
/* saturating add */ \
379
- if (interp -> rare_events .name < UINT8_MAX ) interp -> rare_events .name ++ ; \
379
+ if (interp -> rare_events .name < UINT16_MAX ) interp -> rare_events .name ++ ; \
380
380
RARE_EVENT_STAT_INC (name ); \
381
381
} while (0 ); \
382
382
You can’t perform that action at this time.
0 commit comments