Skip to content

Fix FSEvents dispatch queue wakeups - #14730

Merged
rgrinberg merged 1 commit into
ocaml:mainfrom
rgrinberg:push-myxovtpmpsnp
May 25, 2026
Merged

rgrinberg merged 1 commit into
ocaml:mainfrom
rgrinberg:push-myxovtpmpsnp

Conversation

@rgrinberg

Copy link
Copy Markdown
Member

Wait for dispatch queue shutdown with a predicate loop so missed broadcasts and spurious condition-variable wakeups cannot make wait_until_stopped return too early or block forever. Add a regression test for stopping a stream before waiting on the dispatch queue.

Keep the callback exception global root alive until dispatch queue finalization, and read/write the OCaml exception value while holding the OCaml runtime lock.

Wait for dispatch queue shutdown with a predicate loop so missed broadcasts and spurious condition-variable wakeups cannot make wait_until_stopped return too early or block forever. Add a regression test for stopping a stream before waiting on the dispatch queue.

Keep the callback exception global root alive until dispatch queue finalization, and read/write the OCaml exception value while holding the OCaml runtime lock.

Signed-off-by: Rudi Grinberg <[email protected]>
@rgrinberg
rgrinberg merged commit 151b393 into ocaml:main May 25, 2026
29 checks passed
@Alizter Alizter added this to the 3.25.0 milestone Jul 8, 2026
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.

2 participants