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

Fix missing GC root in the presence of try/catch #22516

Merged
merged 1 commit into from
Jun 26, 2017
Merged

Conversation

Keno
Copy link
Member

@Keno Keno commented Jun 24, 2017

Since try/catch (returns_twice at the LLVM level) can have control flow
edges not visible to LLVM, we need to be very conservative here. In
order to fix correctness, simply make sure that a value that is live
across a sigsetjmp gets frozen in its own dedicated GC slot. There's
fancier schemes we could attempt, but they would rely on expressing
the exception edges in LLVM IR in one way or another.

Since try/catch (returns_twice at the LLVM level) can have control flow
edges not visible to LLVM, we need to be very conservative here. In
order to fix correctness, simply make sure that a value that is live
across a sigsetjmp gets frozen in its own dedicated GC slot. There's
fancier schemes we could attempt, but they would rely on expressing
the exception edges in LLVM IR in one way or another.
@ararslan ararslan added the GC Garbage collector label Jun 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GC Garbage collector
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants