Skip to content

cmd/gc: stack split check does not follow static branch prediction rules of modern CPUs #10587

@davecheney

Description

@davecheney

Abstract:

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"). 

Full discussion: https://groups.google.com/d/msg/golang-nuts/DbmqfDlAR0U/elFowQ_z_UsJ

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions