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.66 by root, Mon Dec 12 19:43:41 2005 UTC vs.
Revision 1.68 by root, Mon Dec 12 20:28:30 2005 UTC

589 stack->gencnt = ctx->gencnt = 0; 589 stack->gencnt = ctx->gencnt = 0;
590 590
591 if (alloc) 591 if (alloc)
592 { 592 {
593#if HAVE_MMAP 593#if HAVE_MMAP
594 stack->ssize = 16384 * sizeof (long); /* mmap should do allocate-on-write for us */ 594 stack->ssize = STACKSIZE * sizeof (long); /* mmap should do allocate-on-write for us */
595 stack->sptr = mmap (0, stack->ssize, PROT_EXEC|PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0); 595 stack->sptr = mmap (0, stack->ssize, PROT_EXEC|PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0);
596 if (stack->sptr == (void *)-1) 596 if (stack->sptr == (void *)-1)
597#endif 597#endif
598 { 598 {
599 /*FIXME*//*D*//* reasonable stack size! */ 599 /*FIXME*//*D*//* reasonable stack size! */
600 stack->ssize = - (8192 * sizeof (long)); 600 stack->ssize = - (STACKSIZE * sizeof (long));
601 New (0, stack->sptr, 8192, long); 601 New (0, stack->sptr, STACKSIZE, long);
602 } 602 }
603 } 603 }
604 else 604 else
605 stack->sptr = 0; 605 stack->sptr = 0;
606 606

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines