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

Mutable #320

Merged
merged 21 commits into from
Jan 22, 2025
Merged

Mutable #320

merged 21 commits into from
Jan 22, 2025

Conversation

giann
Copy link
Collaborator

@giann giann commented Jan 13, 2025

No description provided.

@giann giann force-pushed the mutable branch 4 times, most recently from 70dfbcb to 4c17106 Compare January 14, 2025 15:05
giann added 3 commits January 18, 2025 23:39
When JIT code calls a function, it allocate a slot on the stack to hold its NativeCtx.
That alloca was outliving the function being called since it was allocated outside of it.
tests/bench/008-for.buzz was crashing because we were doing 1M function call in the same function and so stacking 1M alloca.

=> We put the alloca inside a BSTART/BEND so the alloca is released once the function is being called is done
@giann giann force-pushed the mutable branch 5 times, most recently from de0b495 to 06a3194 Compare January 21, 2025 12:01
@giann giann merged commit a37d04d into main Jan 22, 2025
3 checks passed
@giann giann deleted the mutable branch January 22, 2025 14:55
@giann giann mentioned this pull request Jan 22, 2025
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