Skip to content

Commit 6616211

Browse files
xerothermicanakryiko
authored andcommitted
pytrace: fix segfault for free-threading python
Signed-off-by: Patrick Lu <perf.patrick.lu@gmail.com>
1 parent 9639e7f commit 6616211

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/inj_pytrace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ static int pytrace_profile_callback(PyObject *obj, PyFrameObject *frame, int wha
267267
return 0;
268268
}
269269

270-
pytrace_event_cnt++;
270+
atomic_add(&pytrace_event_cnt, 1);
271271
return 0;
272272
}
273273

0 commit comments

Comments
 (0)