Skip to content

Implement FiberScheduler#fiber_interrupt#283

Open
rsamoilov wants to merge 5 commits intomainfrom
fiber-interrupt
Open

Implement FiberScheduler#fiber_interrupt#283
rsamoilov wants to merge 5 commits intomainfrom
fiber-interrupt

Conversation

@rsamoilov
Copy link
Copy Markdown
Member

This pull request introduces a wait generation mechanism to the fiber scheduler and fiber coordination logic. The main goal is to prevent stale resumes by ensuring that only the most recent wait or block operation on a fiber can resume it. This is achieved by tracking a generation counter (__wait_generation) that is incremented on each wait-related operation. The changes also update the fiber scheduler to implement the fiber_interrupt method.

rsamoilov added 5 commits May 4, 2026 19:02
technically, it should always be initialized if called inside a request fiber. But there could still be cases when it's not, for example in a handshake span. It wouldn't make much sense, but just to be safe
@rsamoilov rsamoilov marked this pull request as ready for review May 6, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant