summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorAlan Wu <[email protected]>2025-02-20 19:10:52 -0500
committerTakashi Kokubun <[email protected]>2025-04-18 21:52:59 +0900
commitb8f49888a4030a29437cef9491078258df45ee77 (patch)
treea1457076bed0a22641deade0d7a6677814a5b08b /vm.c
parente24be0b8d5704f33b65541dd8493831b9364ef3e (diff)
Avoid setting RUST_BACKTRACE environment while panicking
The 2024 edition pointed out that setting env vars in multiple threaded programs is unsafe, due to it being thread unsafe in glibc. Sure don't want to crash while already crashing! Always grab a backtrace with force_backtrace().
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13131
Diffstat (limited to 'vm.c')
0 files changed, 0 insertions, 0 deletions