On Mon, Apr 27, 2015 at 4:20 PM, Dave Cheney <da...@cheney.net> wrote:
> Possibly, that is how the JVM does it, but the stack check prolog is also
> used for preemption (sort of like a safe point), and in general usage the
> stack check is predictable by the cpu, so effectively free.
In fact current stack split check is against static branch prediction
rules of modern CPUs (i.e. "forward branch is not taken").