-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add (theoretical) thread-safety to x86_64 (#7)
The current implementation passes existing tests, and while I'm pretty sure it'll be thread-safe, I don't yet know how to test this. As there is room for doubt, I am not yet documenting this behaviour. This was started as an effort to clean away the unnecessary activate and deactivate utility functions (in favour of calling _green_current directly). Sort of got out of hand; I wasn't expecting to implement this quite so early. Since there are no tests for this, other architectures/platforms likely won't mimic this capability right away.
- Loading branch information
Showing
3 changed files
with
64 additions
and
65 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -650,7 +650,7 @@ DEFTEST(test_bad_await) | |
} | ||
|
||
|
||
#ifdef __x86_64__ | ||
#if defined(__x86_64__) | ||
asm( | ||
" .text \n" | ||
|
||
|