Skip to content

Base.specialize_method CodeInstance not saved in system image #58841

Closed
@Keno

Description

@Keno

Seen on at least these two PRs:
#58830
#58768

From worker 9:	┌ Info: REPL: trace compile output:
--
  | From worker 9:	│ precompile(Tuple{typeof(Core.kwcall), NamedTuple{(:preexisting,), Tuple{Bool}}, typeof(Base.specialize_method), Method, Any, Core.SimpleVector})
  | From worker 9:	└ precompile(Tuple{typeof(Base.setindex!), Base.Dict{Any, Any}, Any, Char})

From worker 6:	┌ Info: REPL: trace compile output:
--
  | From worker 6:	│ precompile(Tuple{typeof(Core.kwcall), NamedTuple{(:preexisting,), Tuple{Bool}}, typeof(Base.specialize_method), Method, Any, Core.SimpleVector})
  | From worker 6:	└ precompile(Tuple{REPL.var"#61#62"{REPL.LineEditREPL, REPL.REPLBackendRef}}) # recompile

I'm primarily concerned about the Base.specialize_method one - the other one could plausibly be related to the individual PRs, but the Base.specialize_method one is in the compiler and seems to get triggered every time something is inferred. At the very least that's a latency bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions