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

Always let free() be Noop, Upgrade TLSUV and fix crashes #2130

Merged
merged 2 commits into from
Jan 27, 2025
Merged

Conversation

plajjan
Copy link
Contributor

@plajjan plajjan commented Jan 27, 2025

No description provided.

Kristian Larsson added 2 commits January 27, 2025 23:19
We should always do a noop_free. I think GC_free() is for leak
detection, but we never use that so for all normal code we should just
never free and instead let the GC do its job.

This was prompted by free bugs related to TLS. I have not verified that
this particular change fixes it, but I believe it is the correct thing
to do.
This version implements multiple things we need, like custom allocators,
so we can get rid of our own patches to tlsuv. The authmode patch
remains. I put together a new build.zig too which more closely resembles
the CMake config, although there still some Acton-related things.

Above all, this appears to fix the TLS client so things are working
properly again.
@plajjan plajjan enabled auto-merge January 27, 2025 23:50
@plajjan plajjan merged commit 0acfb83 into main Jan 27, 2025
26 checks passed
@plajjan plajjan deleted the tlsuv-upgrade branch January 27, 2025 23:51
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