8 Commits
Author SHA1 Message Date
Nobuyoshi Nakada d2b7e1e4b2 Protoized old pre-ANSI K&R style definitions 2020-12-05 14:57:31 +09:00
Samuel Williams 15e23312f6 Rework the order of operations to avoid stack smashing. 2020-12-05 11:38:56 +13:00
Samuel Williams f96216df8d Remove "All Rights Reserved." from Copyright statement. 2019-12-28 12:41:47 +13:00
Jeremy Evans f05416c91f Fix coroutine copy implementation on OpenBSD
OpenBSD is the only platform that uses this support by default,
and it did not work because while OpenBSD supports alloca, it does
not include alloca.h.

This should be backported to Ruby 2.7.

From George Koehler
2019-12-27 15:01:01 -08:00
Samuel Williams e14f5762c5 Add assertions to coroutine_initialize_main. 2019-07-19 15:55:34 +12:00
Samuel Williams dd0e33f083 Split assertions to check which one fails. 2019-07-19 15:53:47 +12:00
Samuel Williams 001f187ed6 Make fiber_pool more conservative on platforms with limited address space.
We use COROUTINE_LIMITED_ADDRESS_SPACE to select platforms where address
space is 32-bits or less. Fiber pool implementation enables more book
keeping, and reduces upper limits, in order to minimise address space
utilisation.
2019-07-18 20:54:55 +12:00
Samuel Williams 91aae651bf Stack copying implementation of coroutines. 2019-07-18 20:54:54 +12:00