Skip to content
  • Jacob Lorentzon's avatar
    Use weak CAS and use abort() in context::switch. · 7d4defa5
    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.
    7d4defa5