Skip to content

Commit

Permalink
Merge #657
Browse files Browse the repository at this point in the history
657: Make posix utility guards consistent in Boost coroutines implementation r=msimberg a=msimberg

This should fix problems seen on Apple M1/M2 systems.

Co-authored-by: Mikael Simberg <mikael.simberg@iki.fi>
  • Loading branch information
bors[bot] and msimberg authored Apr 18, 2023
2 parents 24165f6 + 5ab9280 commit 3c44093
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ namespace pika::threads::coroutines {

void* allocate(std::size_t size) const
{
# if defined(_POSIX_VERSION) && \
!(defined(__APPLE__) && (defined(arm64) || defined(__arm64) || defined(__arm64__)))
# if defined(_POSIX_VERSION)
void* limit = posix::alloc_stack(size);
posix::watermark_stack(limit, size);
# else
Expand Down

0 comments on commit 3c44093

Please sign in to comment.