You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix thread-safety violation in Allocations Profiler: Create a new per-thread backtrace buffer in ptls (#44116)
* Fix thread-safety violation in Allocations Profiler:
Re-use the shared `ptls->bt_data` buffer from the thread-local storage
for the buffer, to ensure that each thread has a separate buffer.
This buffer is shared with the exception throwing mechanism, but is safe
to share since julia exception throwing never interleaves with
allocations profiling.
* Approach two: Create a separate per-thread allocations backtrace buffer.
* Update src/gc-alloc-profiler.cpp
Co-authored-by: Jameson Nash <vtjnash@gmail.com>
* Update src/gc-alloc-profiler.cpp
Co-authored-by: Jameson Nash <vtjnash@gmail.com>
* fix type error (#44235)
* Update src/gc-alloc-profiler.cpp
Co-authored-by: Jameson Nash <vtjnash@gmail.com>
Co-authored-by: Pete Vilter <7341+vilterp@users.noreply.github.com>
0 commit comments