1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use native coroutine implementation on OpenBSD-amd64

When using native fibers, do not load ucontext, as it isn't needed.
This commit is contained in:
Jeremy Evans 2019-06-26 15:21:59 -07:00
parent 24c4e6dec1
commit 7172ab0ec5
2 changed files with 3 additions and 1 deletions

View file

@ -2281,6 +2281,9 @@ AS_CASE(["$rb_cv_fiber_coroutine"], [yes|''], [
[powerpc64le-linux], [
rb_cv_fiber_coroutine=ppc64le
],
[x86_64-openbsd*], [
rb_cv_fiber_coroutine=amd64
],
[*-openbsd*], [
rb_cv_fiber_coroutine=
],

1
cont.c
View file

@ -85,7 +85,6 @@
#ifndef _WIN32
#include <unistd.h>
#include <sys/mman.h>
#include <ucontext.h>
#endif
#define RB_PAGE_SIZE (pagesize)
#define RB_PAGE_MASK (~(RB_PAGE_SIZE - 1))