Skip to content

[CP] [dart2wasm] Fix array.new_fixed calls with too large size #55873

Description

@mkustermann

Commit(s) to merge

c7834b6

Target

stable

Prepared changelist for beta/stable

https://dart-review.googlesource.com/c/sdk/+/368644

Issue Description

Certain large apps can result in dart2wasm emitting an array.new_fixed instruction with more than 10000 elements, which causes a runtime error when running in browsers.

What is the fix

Avoid using array.new_fixed if the array is larger than 10000

Why cherry-pick

Users are hitting this on stable channel.

Risk

Low

Issue link(s)

#55396, #55872

Extra Info

No response

Metadata

Metadata

Labels

cherry-pick-approvedLabel for approved cherrypick requestcherry-pick-reviewIssue that need cherry pick triage to approve

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions