Skip to content

Fix incorrect loads when setting Array#length #923

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 22, 2019
Merged

Fix incorrect loads when setting Array#length #923

merged 1 commit into from
Oct 22, 2019

Conversation

dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented Oct 21, 2019

fixes #900

Setting Array#length on an array of references to a value lower than the current length releases no longer used refs, but the pointer computation there was wrong and tried to release random stuff mostly at the start of the memory. Didn't surface earlier because we were missing a test.

This was so deeply wrong before that even just switching between the full and half runtime with their slightly different memory patterns (half tree-shakes some functions and thus static data) leads to just one resulting in an observable random error.

@dcodeIO dcodeIO merged commit 98c0bb7 into master Oct 22, 2019
@dcodeIO dcodeIO deleted the issue-900 branch November 8, 2019 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

array.length set to lower value should remove items properly
1 participant