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

Add GC preserve to unsafe_string conversions from pointer #23

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

jishnub
Copy link
Contributor

@jishnub jishnub commented Jun 6, 2024

My understanding is that this is the way to ensure that the vector is not garbage-collected during the operation, which may lead to segfaults.

@jishnub jishnub force-pushed the jishnub/unsafestringconvert branch from 37d6841 to ee3c6a1 Compare July 3, 2024 07:23
@jishnub
Copy link
Contributor Author

jishnub commented Jul 3, 2024

@giordano I wonder if you might have time to take a look?

@giordano
Copy link
Member

giordano commented Jul 3, 2024

This looks overall good to me. But my understanding from your issue in Julia repo is that this isn't enough to solve all issues, right?

Side note, I invited you to the org, I was surprised you weren't here already!

@jishnub
Copy link
Contributor Author

jishnub commented Jul 3, 2024

Yes, I suspect there are other issues as well. I'm trying to address some of the known points of failure to narrow these down.

@giordano giordano merged commit faa9478 into JuliaAstro:master Jul 3, 2024
7 checks passed
@jishnub jishnub deleted the jishnub/unsafestringconvert branch July 3, 2024 12:01
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