Permalink
Browse files

Merge pull request #230 from jeremyevans/patch-1

Ensure 16-byte alignment for amd64 coroutine stack
  • Loading branch information...
2 parents 7bf702c + 84c9e4f commit 91c356f14ebfea88f501d879be940fa8fb3c1243 @stevedekorte committed Oct 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 libs/coroutine/source/Coro.c
View
2 libs/coroutine/source/Coro.c
@@ -599,7 +599,7 @@ void Coro_setup(Coro *self, void *arg)
if (64 > (- sav[i] + (uintptr_t)&i))
break;
assert(i < sz);
- sav[i] = stackend - sizeof(uintptr_t) - 128;
+ sav[i] = stackend - sizeof(uintptr_t)*2 - 128;
}
}

0 comments on commit 91c356f

Please sign in to comment.