mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
058b1ed822
When an exception is thrown through swift_job_run, it leaves the Concurrency runtime in an inconsistent state, which can lead to misbehavior or crashes later on. It's very difficult to work out what the cause is when this happens. Since the program state is doomed once this happens, prevent exceptions from propagating through swift_job_run at all, and terminate immediately when throwing. rdar://171909991