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

JSONSax: register JSONState with GC #3384

Closed
wants to merge 1 commit into from

Conversation

yorickvP
Copy link
Contributor

@yorickvP yorickvP commented Mar 2, 2020

It turns out that ValueVector.push_back will sometimes trigger a GC,
which cannot see through the external heap allocation from new
JSONState.

To fix this, we use new(NoGC), which will allow gc tracing through
it. We also need to add a deleter for the unique_ptr that doesn't
call free().

Fixes #3377 (unverified, cannot reproduce).

It turns out that ValueVector.push_back will sometimes trigger a GC,
which cannot see through the external heap allocation from new
JSONState.

To fix this, we use new(NoGC), which will allow gc tracing through
it. We also need to add a deleter for the unique_ptr that doesn't
call `free()`.
@edolstra edolstra closed this in 10e17ea Apr 16, 2020
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.

crash nix::JSONSax::JSONListState::add
1 participant