… | … | ||
---|---|---|---|
672 | if (!base) | 672 | if (!base) |
673 | return 0; | 673 | return 0; |
674 | #endif | 674 | #endif |
675 | 675 | ||
676 | #if CORO_USE_VALGRIND | 676 | #if CORO_USE_VALGRIND |
677 | stack->valgrind_id = VALGRIND_STACK_REGISTER ((char *)base, (char *)ssze - CORO_GUARDPAGES * PAGESIZE); | 677 | stack->valgrind_id = VALGRIND_STACK_REGISTER ((char *)base, ((char *)base) + ssze - CORO_GUARDPAGES * PAGESIZE); |
678 | #endif | 678 | #endif |
679 | 679 | ||
680 | stack->sptr = base; | 680 | stack->sptr = base; |
681 | return 1; | 681 | return 1; |
682 | 682 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |