KEMBAR78
NativeAOT: Inline static initialization checks in codegen · Issue #80954 · dotnet/runtime · GitHub
Skip to content

NativeAOT: Inline static initialization checks in codegen #80954

@EgorBo

Description

@EgorBo

All the places where NativeAOT emits call <static initialization helper> we should attempt to inline "is it already initialized" quick checks in front of calls (and mark calls as "cold"). I already did it for JIT a while back (#47901) but gave up on it since JIT successfully gets rid of all static initializations with help of Tiered Compilation (and even with single tier) while it's not physically possible for Ahead-of-Time.

Tracking issue for #64242

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions