-
Jacob Lorentzon authored
Previously context::switch used compare_and_swap for acquiring the global context switch lock, but given its deprecation in more recent Rust versions, it has been replaced with compare_exchange_weak (which can be further optimized on some architectures). It also replaces panic!() with abort() in switch_finish_hook, because unwinding from assembly is not that fun.