4 ms·
> JIT won't inline functions that throw Seriously? Never had to worry about that in Java land. What would be the reason for this?
by blinkingled 8y ago
> JIT won't inline functions that throw
Seriously? Never had to worry about that in Java land. What would be the reason for this?
- nlawalker 8y agoStack trace accuracy, maybe?
- fgonzag 8y agoShouldn't matter, since you're throwing at that particular location of the executing function, so the runtime still has to have a way of knowing that the code was part of an inline function along with its name.
- benaadams 8y agoSize generally; you can aggressive inline it, but you'll likely be pulling in some chunky stuff for the throw. Push the throw out of line and your inline will be more trim.