Skip to content

cmd/compile: go:linkname prevents inlining #20019

@dvyukov

Description

@dvyukov

go version devel +33c3477039 Tue Apr 18 03:56:16 2017 +0000 linux/amd64

sync_runtime_procPin is marked with //go:linkname sync_runtime_procPin sync.runtime_procPin. Runtime marks it as inlinable (which is good). However, sync fails to inline it with cannot inline runtime_canSpin: no function body.
There are more functions exposed from runtime to sync, sync/atomic, reflect, time, os.
Can we inline them?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions