Skip to content

cmd/compile: //go:uintptrescapes doesn't work with anonymous parameters #23045

Closed
@mdempsky

Description

@mdempsky

If you remove the a parameter name from F1 and F2 in uintptrescapes2.go (i.e., change them to func F1(uintptr) {} and func F2(...uintptr) {}), the test fails.

I suspect in practice this particular issue doesn't matter in practice, but looking at the code, I can't obviously see why the parameter names should be relevant in either (*EscState).esctag or ordercall. It makes me worry that escape analysis / pragma tags might not be working correctly in some other more realistic scenarios.

/cc @ianlancetaylor

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions