We can report errors in all sorts of weird places, and it makes us root variables in places where we wouldn't otherwise need to. So it would be great if error reporting never allocated. It sounds like the main problems would be: 1. Have a pre-created exception object around, as well as whatever related objects might be needed. 2. Delay calling the exception hooks until it's safe to GC.
You need to log in before you can comment on or make changes to this bug.