Skip to content

fibers: refactor fiber to only rely on a FCC - #23994

Draft
Girgias wants to merge 1 commit into
php:masterfrom
Girgias:fibers-use-only-fcc
Draft

Girgias wants to merge 1 commit into
php:masterfrom
Girgias:fibers-use-only-fcc

Conversation

@Girgias

@Girgias Girgias commented Sep 29, 2026

Copy link
Copy Markdown
Member

This reduces the size of the zend_fiber struct from 328 bytes to 280 while also simplifying memory management for callables, as this is all handled by the FCC API.

I wonder if we should try to move the zend_fiber_status field from _zend_fiber_context to _zend_fiber because if we use a C23 enum it would fit in the gap between the flags and param_count fields.

This reduces the size of the zend_fiber struct from 328 bytes to 280 while also simplifying memory management for callables, as this is all handled by the FCC API.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant