-
Notifications
You must be signed in to change notification settings - Fork 15
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 LeanFFI #246
Fix LeanFFI #246
Conversation
3a57463
to
4c42ca6
Compare
Awesome progress! Thanks for looking into this 🙂 |
908b779
to
e499de2
Compare
The tests now run but Lean folks said this shouldn't work. Waiting for clarification on this thread: https://leanprover.zulipchat.com/#narrow/stream/424609-lean-at-aws/topic/Reverse.20FFI.20Thread.20Safety before we can merge. |
Lean PR. We need to wait until we upgrade to that Lean version before we fix+merge this. |
Signed-off-by: Andrew Wells <[email protected]>
e499de2
to
703dea3
Compare
Signed-off-by: Andrew Wells <[email protected]>
703dea3
to
18f24e5
Compare
Does not allow multiple LeanFFI threads, but should fix a memory leak. |
Signed-off-by: Shaobo He <[email protected]> Co-authored-by: Andrew Wells <[email protected]>
Issue #, if available:
#227
Description of changes:
Fix LeanFFI to work with multiple threads.Also decrement reference count on responses to fix memory leak.Threads issue is blocked on leanprover/lean4#3632 being released. This PR now purely fixes the memory leak.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.