Skip to content

Commit

Permalink
helper_stack 不小心没了
Browse files Browse the repository at this point in the history
  • Loading branch information
microcai committed Dec 17, 2024
1 parent 488b970 commit aa5bcd6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions µasync/include/universal_fiber.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,8 @@ static inline void __coroutine_entry_point(FiberContext* ctx)
getcontext(&helper_ctx);
typedef void (*__func)(void);

alignas(64) static thread_local char helper_stack[256];

helper_ctx.uc_stack.ss_sp = helper_stack;
helper_ctx.uc_stack.ss_flags = 0;
helper_ctx.uc_stack.ss_size = 256;
Expand Down

0 comments on commit aa5bcd6

Please sign in to comment.