]> git.lizzy.rs Git - rust.git/commit
Open code the __fastfail intrinsic for rtabort! on windows
authorBrian Anderson <banderson@mozilla.org>
Mon, 23 May 2016 04:16:26 +0000 (00:16 -0400)
committerBrian Campbell <lambda@continuation.org>
Tue, 24 May 2016 12:56:03 +0000 (08:56 -0400)
commit696a570a00db2528b7934be32da7d8334738a997
tree977c8c960d60a59c6a059780d8fbcda1f8d303d2
parentcfc386583291c8868d093d07431a57a20e69c944
Open code the __fastfail intrinsic for rtabort! on windows

As described https://msdn.microsoft.com/en-us/library/dn774154.aspx

This is a Windows 8+ mechanism for terminating the process quickly,
which degrades to either an access violation or bugcheck in older versions.

I'm not sure this is better the the current mechanism of terminating
with an illegal instruction, but we recently converted unix to
terminate more correctly with SIGABORT, and this *seems* more correct
for windows.

[breaking-change]
src/libstd/sys/common/util.rs