ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/Coro/State.xs
(Generate patch)

Comparing Coro/Coro/State.xs (file contents):
Revision 1.36 by root, Fri Oct 5 14:20:10 2001 UTC vs.
Revision 1.37 by root, Tue Oct 9 00:39:11 2001 UTC

543 stack->refcnt = 1; 543 stack->refcnt = 1;
544 stack->usecnt = 1; 544 stack->usecnt = 1;
545 stack->gencnt = ctx->gencnt = 0; 545 stack->gencnt = ctx->gencnt = 0;
546 if (alloc) 546 if (alloc)
547 { 547 {
548#ifdef HAVE_MMAP 548#if HAVE_MMAP
549 stack->ssize = 128 * 1024 * sizeof (long); /* mmap should do allocate-on-write for us */ 549 stack->ssize = 128 * 1024 * sizeof (long); /* mmap should do allocate-on-write for us */
550 stack->sptr = mmap (0, stack->ssize, PROT_EXEC|PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0); 550 stack->sptr = mmap (0, stack->ssize, PROT_EXEC|PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0);
551 if (stack->sptr == (void *)-1) 551 if (stack->sptr == (void *)-1)
552#endif 552#endif
553 { 553 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines