AllocationSinking issues with records and closures #53804
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
P3
A lower priority bug or feature request
triaged
Issue has been triaged by sub team
type-performance
Issue relates to performance or code size
vm-aot-code-size
Related to improvements in AOT code size
results in
Two problems here:
null
) of the record field is not forwarded. Probably due to limitations around forwarding of initialnull
fromfinal
fields - these limitations should not apply to records. And strictly speaking they could be lifted fromfinal
fields as well if we are a bit smarter with expressing side-effects: only calls to constructors can initializefinal
fields of normal objects.v6
is not sunk probably because it's context is referencing itself. We could be smarter around that. This code should have 0 allocations.Note: issues with using
late
variables for patterns lowering are tracked in a separate issue #52805/cc @alexmarkov can you take a look?
The text was updated successfully, but these errors were encountered: