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

* cont.c: typos.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2010-07-28 00:38:21 +00:00
parent 8bc55563db
commit e53a60147b
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Wed Jul 28 09:38:03 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* cont.c: typos.
Wed Jul 28 09:24:43 2010 NARUSE, Yui <naruse@ruby-lang.org>
* cont.c: (RB_PAGE_SIZE): renamed from PAGE_SIZE. [ruby-dev:41870]

4
cont.c
View file

@ -41,7 +41,7 @@
#include <unistd.h>
#include <sys/mman.h>
#include <ucontext.h>
# clean cast warnings.endif
#endif
#define RB_PAGE_SIZE (pagesize)
#define RB_PAGE_MASK (~(RB_PAGE_SIZE - 1))
static long pagesize;
@ -498,7 +498,7 @@ fiber_set_stack_location(void)
VALUE *ptr;
SET_MACHINE_STACK_END(&ptr);
th->machine_stack_start = (void*)(((VALUE)ptr & PAGE_MASK) + STACK_UPPER(&ptr, 0, RB_PAGE_SIZE));
th->machine_stack_start = (void*)(((VALUE)ptr & RB_PAGE_MASK) + STACK_UPPER(&ptr, 0, RB_PAGE_SIZE));
}
static VOID CALLBACK