Skip to content

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.

4 participants