Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(profiling): add more GIL assertions to memalloc
The first GIL assertion I added, to memalloc_add_event, has not tripped yet on a test application. One the one hand, it's reassuring that we always see the GIL in that part of the code. On the other hand, there are other parts of the memory profiler that could in theory be called concurrently where I didn't add the assertion: when stopping the profiler, and when iterating over the events to aggregate them. Add GIL assertions to those points. The goal is ultimately to understand why we needed to add locks to the profiler to prevent it from crashing, given that the GIL exists.
- Loading branch information