History log of /ext-fiber/src/fiber.c (Results 1 – 25 of 200)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# c265d9fb 28-Jun-2021 Aaron Piotrowski

Implemented Fiber GC handler

Co-authored-by: Martin Schröder <m.schroeder2007@gmail.com>


# b5d6a96a 20-Jun-2021 Aaron Piotrowski

Rename Fiber::this() to Fiber::getCurrent()


# cd4300ca 22-May-2021 Aaron Piotrowski

Allocate fiber stack within try


# cfcb53a1 08-May-2021 Aaron Piotrowski

Catch and repeat zend_bailout in fibers

This removes switching to main for fatal errors in fibers in favor of catching any zend_bailout in a fiber and calling zend_bailout again after switch

Catch and repeat zend_bailout in fibers

This removes switching to main for fatal errors in fibers in favor of catching any zend_bailout in a fiber and calling zend_bailout again after switching to the previous fiber or {main}.

show more ...


# 8681cd3d 05-May-2021 Aaron Piotrowski

Check current_execute_data instead of flags in fiber destructor

Checking EG(current_exectue_data) throws into the previous fiber instead of triggering a fatal error during shutdown. A fatal

Check current_execute_data instead of flags in fiber destructor

Checking EG(current_exectue_data) throws into the previous fiber instead of triggering a fatal error during shutdown. A fatal error is triggered only if the throwing destroyed fiber was resumed from {main}.

show more ...


# b66d4db3 05-May-2021 Aaron Piotrowski

Rethrow exceptions in fiber destructor

We need to make sure that HANDLE_EXCEPTION is set when the fiber
throws during destruction.

Co-Authored-By: Nikita Popov <nikita.ppv@gmail

Rethrow exceptions in fiber destructor

We need to make sure that HANDLE_EXCEPTION is set when the fiber
throws during destruction.

Co-Authored-By: Nikita Popov <nikita.ppv@gmail.com>

show more ...


# 10a354d3 01-May-2021 Aaron Piotrowski

Improve fiber backtraces


# ea40a197 01-May-2021 Aaron Piotrowski

Fix exception thrown during fiber destruct


# 1f333ab9 29-Apr-2021 Aaron Piotrowski

Update based on php-src implementation


# bfc304bc 15-Apr-2021 Aaron Piotrowski

Generate arginfo from stubs


# c3d3c83b 13-Apr-2021 Aaron Piotrowski

Allocate error on the stack


# e5ec5488 11-Apr-2021 Aaron Piotrowski

Use preallocated context

Removed just-added data pointer as this approach makes it unnecessary.


# f086534e 11-Apr-2021 Aaron Piotrowski

Provide fiber context to and from internal API functions


# bb013307 09-Apr-2021 Aaron Piotrowski

Index active fibers by ID


# c4b643e5 09-Apr-2021 Aaron Piotrowski

Few other minor nits


# 04cf1476 08-Apr-2021 Aaron Piotrowski

A few minor fixes and nits


# 2993e08e 07-Apr-2021 Aaron Piotrowski

Eliminate stack temp


# 134f7dda 07-Apr-2021 Aaron Piotrowski

Fix hidden exception from suspend in force closed fiber

(EG(flags) & EG_FLAGS_IN_SHUTDOWN) cannot be used as a replacement for FIBER_G(shutdown) because it prevents fibers being resumed in a

Fix hidden exception from suspend in force closed fiber

(EG(flags) & EG_FLAGS_IN_SHUTDOWN) cannot be used as a replacement for FIBER_G(shutdown) because it prevents fibers being resumed in a shutdown function.

show more ...


# fbf4cb92 06-Apr-2021 Aaron Piotrowski

Consolodate freeing


# 63545154 03-Apr-2021 Aaron Piotrowski

Change timing of setting current fiber


# 89d365db 02-Apr-2021 Aaron Piotrowski

Switch to {main} for fatal errors


# a89a209b 29-Mar-2021 Aaron Piotrowski

Minor stylistic changes


# 45143f6e 29-Mar-2021 Aaron Piotrowski

Combine create and initialize context functions

zend_fiber_create_context had been reduced to a malloc function and felt unnecessary.


# d482635b 28-Mar-2021 Aaron Piotrowski

Remove stack_size property

Accessable through fiber->context->stack.size.


# 54eeb4b5 28-Mar-2021 Aaron Piotrowski

Remove root context


12345678