Windows uses OSFiber_windows.hpp. macOS and Linux uses OSFiber_asm_* or OSFiber_ucontext.hpp Android has no support for makecontext / swapcontext, and so relies on the OSFiber_asm_* implementations. Unlike makecontext, swapcontext or the Windows fiber APIs, these assembly implementations *do not* save or restore signal masks, floating-point control or status registers, FS and GS segment registers, thread-local storage state nor any SIMD registers. This should not be a problem as the yarn scheduler requires fibers to be executed on a single thread. Bug: b/139010488 Change-Id: I5f890ffe4f069361a7eeae64567a77be3a4ba008 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/34771Tested-by:Ben Clayton <bclayton@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| Debug.cpp | Loading commit data... | |
| Debug.hpp | Loading commit data... | |
| Defer.hpp | Loading commit data... | |
| Defer_test.cpp | Loading commit data... | |
| Finally.hpp | Loading commit data... | |
| OSFiber.hpp | Loading commit data... | |
| OSFiber_asm.hpp | Loading commit data... | |
| OSFiber_asm_aarch64.c | Loading commit data... | |
| OSFiber_asm_aarch64.h | Loading commit data... | |
| OSFiber_asm_aarch64.s | Loading commit data... | |
| OSFiber_asm_arm.c | Loading commit data... | |
| OSFiber_asm_arm.h | Loading commit data... | |
| OSFiber_asm_arm.s | Loading commit data... | |
| OSFiber_asm_x64.c | Loading commit data... | |
| OSFiber_asm_x64.h | Loading commit data... | |
| OSFiber_asm_x64.s | Loading commit data... | |
| OSFiber_asm_x86.c | Loading commit data... | |
| OSFiber_asm_x86.h | Loading commit data... | |
| OSFiber_asm_x86.s | Loading commit data... | |
| OSFiber_test.cpp | Loading commit data... | |
| OSFiber_ucontext.hpp | Loading commit data... | |
| OSFiber_windows.hpp | Loading commit data... | |
| Yarn_test.cpp | Loading commit data... | |
| Yarn_test.hpp | Loading commit data... |