Created
October 9, 2020 07:20
-
-
Save wmealing/2a1a724b267cdde1a2727d8c7a5cb0f4 to your computer and use it in GitHub Desktop.
this should be crashing on tsx disabled systems.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() | |
{ | |
int x = 0; | |
while (x < 100000) { | |
asm ("xbegin ABORT"); | |
x++; | |
asm ("xend"); | |
asm ("ABORT:"); | |
} | |
printf("%d\n", x); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment