Skip to content

Conversation

@akroshg
Copy link
Contributor

@akroshg akroshg commented Sep 25, 2019

This assert is happening due to false positive. The array's head segment is not allocated as inlined - but it was allocated on the page boundary.
That makes this segement to just aligned with the array and we got the assert fired for wrong reason.
We don't need to check the assert for the source array to be not inlined as in the above 'else' condition we allocated the dest segment ourselve in the same function.
So I removed the part where we check the current array is not inlined.

@pleath
Copy link
Contributor

pleath commented Sep 25, 2019

Is there a code change? I only see the UT.

@akroshg
Copy link
Contributor Author

akroshg commented Sep 25, 2019

huh - should have added sources as well. thanks

This assert is happening due to false positive. The array's head segment is not allocated as inlined - but it was allocated on the page boundary.
That makes this segement to just aligned with the array and we got the assert fired for wrong reason.
We don't need to check the assert for the source array to be not inlined as in the above 'else' condition we allocated the dest segment ourselve in the same function.
So I removed the part where we check the current array is not inlined.
@akroshg
Copy link
Contributor Author

akroshg commented Sep 25, 2019

Fixes #6277

@akroshg
Copy link
Contributor Author

akroshg commented Oct 1, 2019

The fix is merged - but not sure why this PR is not closed.

@akroshg akroshg closed this Oct 1, 2019
akroshg added a commit to akroshg/ChakraCore that referenced this pull request Oct 4, 2019
…sert.

Merge pull request chakra-core#6294 from akroshg:fix_6277

This assert is happening due to false positive. The array's head segment is not allocated as inlined - but it was allocated on the page boundary.
That makes this segement to just aligned with the array and we got the assert fired for wrong reason.
We don't need to check the assert for the source array to be not inlined as in the above 'else' condition we allocated the dest segment ourselve in the same function.
So I removed the part where we check the current array is not inlined.
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.

3 participants