Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a recursion to allow tail call elimination #1016

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

tleedjarv
Copy link
Contributor

I believe this fixes #990 and #1006. I originally thought these were two different issues but they seem to be the same issue, just one where external factors caused the issue to manifest in a different way. Even the compiler used to build the binary affects the issue as OCaml 5.x no longer uses the operating system's stack.

The code in question seems to work in some cases (for remote syncs
only?) but under some circumstances (local syncs?) it results in plain
old recursion which can exhaust the stack. This patch changes the code
such that tail call elimination should always work properly.
@gdt gdt merged commit 9c8cd36 into bcpierce00:master Apr 2, 2024
29 checks passed
@tleedjarv tleedjarv deleted the fix-990+1006 branch April 3, 2024 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants