~georgeunix-5/lwan-unofficial/master

Viewing all changes in revision 2552.

  • Committer: Leandro Pereira
  • Date: 2019-11-15 17:35:58 UTC
  • Revision ID: git-v1:7c8b524d454ee6c19a46c07a1f67043de6e598fa
Fix coroutine yield_value signaling

When moving the coro_defer array to inlinefirst, the size of that structure
changed, and with it the offset of the yield_value member was pushed
forward.  Since, on x86_64, the trampoline function is written in assembly,
this is was corrupting memory.

(A static_assert() is now in place to ensure that this doesn't happen again.)

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: