Skip to content

cmd/compile: funccompile is reentrant #33485

@mdempsky

Description

@mdempsky

There's an awkward reentrancy issue with funccompile: funccompile calls compile, which calls dtypesym, which calls geneq/genhash/genwrapper, which call back into funccompile.

I don't think this is causing any problems today, but I was trying to work on #17728, and it led to some confusing issues due to SSA cache corruption.

It would probably be better if generated ASTs were pumped through the same compile workqueue that normal ASTs are compiled.

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