3 ms·
Yeah because that's going to go well: taking a major page fault whenever you throw. Let me know how that works at scale.
by thedance 7y ago
Yeah because that's going to go well: taking a major page fault whenever you throw. Let me know how that works at scale.
- cwzwarich 7y agoYou already take a page fault with DWARF exceptions, since the unwind / LSDA info is probably on a different page from any of your code, as well as the personality routine itself.
- lallysingh 7y agoIf you're throwing, performance isn't the concern. You just want to clean up, return your 500 or what not, and get back to a sane state.
- gpderetta 7y agothat potentially happen even with normal if based error handing. If the compiler thinks the error handling path is unlikely to be run, it can move it to a cold page.