mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
GH-108390: Prevent non-local events being set with sys.monitoring.set_local_events() (GH-108420)
This commit is contained in:
parent
04a0830b00
commit
5a2a046151
7 changed files with 143 additions and 74 deletions
|
|
@ -29,7 +29,7 @@ extern "C" {
|
|||
#define PY_MONITORING_EVENT_STOP_ITERATION 9
|
||||
|
||||
#define PY_MONITORING_IS_INSTRUMENTED_EVENT(ev) \
|
||||
((ev) <= PY_MONITORING_EVENT_STOP_ITERATION)
|
||||
((ev) < _PY_MONITORING_LOCAL_EVENTS)
|
||||
|
||||
/* Other events, mainly exceptions */
|
||||
|
||||
|
|
|
|||
|
|
@ -187,7 +187,7 @@ struct _is {
|
|||
uint16_t optimizer_resume_threshold;
|
||||
uint16_t optimizer_backedge_threshold;
|
||||
|
||||
_Py_Monitors monitors;
|
||||
_Py_GlobalMonitors monitors;
|
||||
bool f_opcode_trace_set;
|
||||
bool sys_profile_initialized;
|
||||
bool sys_trace_initialized;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue