julia
57b3497f - Fix gc rooting in exception throwing

Commit
7 years ago
Fix gc rooting in exception throwing Most paths to `throw_internal` assume that `e` may be unrooted. However, the static analyzer complains that a transition from gc-safe to gc-unsafe (`jl_gc_unsafe_enter`) is a safepoint, so `e` may have been collected there before it gets assigned to `exception_in_transit` (which is a root). Switch the order of operations to fix that.
Author
Committer
Parents
Loading