Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If I recall correctly, GHC (at least the non-LLVM code generator) doesn't spill at every location that GC could be entered. Instead, it checks whether GC needs to be entered, by checking if there is any more space on the stack & heap (admittedly, this is quite trivial, due to its bump-pointer allocation), and only spills and enters the GC if necessary.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: