-
- Downloads
libphobos: Add Thread/Fiber support code for Darwin (PR98058)
libphobos/ChangeLog: PR d/98058 * configure: Regenerate. * libdruntime/Makefile.am (DRUNTIME_DSOURCES_DARWIN): Add core/sys/darwin/config.d * libdruntime/Makefile.in: Regenerate. * libdruntime/config/powerpc/switchcontext.S: Implement fiber_switchContext for __MACH__. * libdruntime/config/x86/switchcontext.S: Likewise. * libdruntime/core/sys/darwin/config.d: New file. * libdruntime/core/thread/fiber.d (Fiber.getThis): Mark noinline. (UnsafeFiberMigration): Define for OSX/X86 and OSX/X86_64. * libdruntime/core/thread/osthread.d (callWithStackShell): Add inline assembler implementation for X86, X86_64, PPC, and PPC64. * libdruntime/core/thread/threadbase.d (ThreadBase.getThis): Mark noinline. * libdruntime/gcc/deh.d (FuncTable): Remove definition. * m4/druntime/os.m4 (DRUNTIME_OS_MINFO_BRACKETING): Check for right bracket symbol on darwin* targets. * testsuite/libphobos.thread/fiber_guard_page.d: Update test to support ucontext-based Fibers.
Showing
- libphobos/configure 18 additions, 4 deletionslibphobos/configure
- libphobos/libdruntime/Makefile.am 13 additions, 13 deletionslibphobos/libdruntime/Makefile.am
- libphobos/libdruntime/Makefile.in 19 additions, 18 deletionslibphobos/libdruntime/Makefile.in
- libphobos/libdruntime/config/powerpc/switchcontext.S 276 additions, 2 deletionslibphobos/libdruntime/config/powerpc/switchcontext.S
- libphobos/libdruntime/config/x86/switchcontext.S 156 additions, 3 deletionslibphobos/libdruntime/config/x86/switchcontext.S
- libphobos/libdruntime/core/sys/darwin/config.d 53 additions, 0 deletionslibphobos/libdruntime/core/sys/darwin/config.d
- libphobos/libdruntime/core/thread/fiber.d 6 additions, 0 deletionslibphobos/libdruntime/core/thread/fiber.d
- libphobos/libdruntime/core/thread/osthread.d 92 additions, 2 deletionslibphobos/libdruntime/core/thread/osthread.d
- libphobos/libdruntime/core/thread/threadbase.d 1 addition, 0 deletionslibphobos/libdruntime/core/thread/threadbase.d
- libphobos/libdruntime/gcc/deh.d 0 additions, 5 deletionslibphobos/libdruntime/gcc/deh.d
- libphobos/m4/druntime/os.m4 18 additions, 4 deletionslibphobos/m4/druntime/os.m4
- libphobos/testsuite/libphobos.thread/fiber_guard_page.d 4 additions, 2 deletionslibphobos/testsuite/libphobos.thread/fiber_guard_page.d
Loading
Please register or sign in to comment