Skip to content

cmd/internal/obj: stack bounds check prologue can be preemptible and resume at entry #62433

@zhouguangyuan0718

Description

@zhouguangyuan0718

The stack bounds check prologue is nonpreemptible now. But actually, if we mark the unsafepoint of it as "RestartAtEntry", it can be async preempted safely. After async preempted, we just need resume it at the entry of the function.

And according to the comment in CL 208126:

TODO: the split-stack function prologue is currently not async
preemptible. We could use this mechanism, preempt it and restart
at the function entry.

It will be reasonable to do this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions