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

Make stg_newCounterzh fast again #6

Merged
merged 1 commit into from
Oct 15, 2023
Merged

Conversation

TerrorJack
Copy link
Contributor

This patch removes the ccall overhead in stg_newCounterzh and directly allocates the counter closure using nursery pointer bumping. This will not cause the same memory corruption in the initial version of #3, ALLOC_PRIM_N will guarantee that when a heap overflow is handled, stg_newCounterzh is called with the same argument as before.

@sergv sergv merged commit 13d1876 into sergv:master Oct 15, 2023
10 checks passed
@sergv
Copy link
Owner

sergv commented Oct 15, 2023

Great, thanks!

@TerrorJack TerrorJack deleted the fast-cmm-alloc branch October 15, 2023 12:08
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