Skip to content

Fix initlocals handling with mono interpreter #37955

@BrzVlad

Description

@BrzVlad

Normally, we are too conservative, adding a MINT_INITLOCALS opcode even if all locals are initialized by IL code, which should be the common case anyway. However, we are not initializing locals coming from inlined methods.

We should be able to detect in the future when an uninitialized local is being used, and only then add the initlocals, both in the inlined method and normal case.

Failed tests: JIT/Directed/zeroinit/**

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions