Commit 6fe562f
committed
Fix resumed_coroutines assertion: add ZEND_ASYNC_REACTOR_TICK and remove io_close reactor tick
- Implement async_reactor_tick() in scheduler.c: sets scheduler context,
executes reactor (no-wait), restores context, drains resumed_coroutines.
- Register it as zend_async_reactor_tick_fn during scheduler startup.
- Remove the manual reactor tick from libuv_io_close — the uv_close
callback will be processed during the next regular reactor tick.1 parent 565c95f commit 6fe562f
2 files changed
Lines changed: 14 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3862 | 3862 | | |
3863 | 3863 | | |
3864 | 3864 | | |
3865 | | - | |
3866 | 3865 | | |
3867 | 3866 | | |
3868 | 3867 | | |
| |||
3875 | 3874 | | |
3876 | 3875 | | |
3877 | 3876 | | |
3878 | | - | |
3879 | 3877 | | |
3880 | 3878 | | |
3881 | 3879 | | |
3882 | 3880 | | |
3883 | | - | |
3884 | 3881 | | |
3885 | 3882 | | |
3886 | 3883 | | |
| |||
3896 | 3893 | | |
3897 | 3894 | | |
3898 | 3895 | | |
3899 | | - | |
3900 | | - | |
3901 | | - | |
3902 | | - | |
3903 | | - | |
3904 | | - | |
3905 | 3896 | | |
3906 | 3897 | | |
3907 | 3898 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
89 | 102 | | |
90 | 103 | | |
| 104 | + | |
91 | 105 | | |
92 | 106 | | |
93 | 107 | | |
| |||
0 commit comments