Skip to content

fix: template literal crash GC(#2178) #2295

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

Conversation

HerrCai0907
Copy link
Member

@HerrCai0907 HerrCai0907 commented May 16, 2022

⯈Another solution to fix template literal bug, see PR #2285
The reason set the color transparent: code cannot get the StaticArray used by template literal, so it is impossible to call __pin / unpin manually, the default transparent is safe.

  • I've read the contributing guidelines
  • I've added my name and email to the NOTICE file

@dcodeIO
Copy link
Member

dcodeIO commented Jun 9, 2022

Referring to #2178 (comment), since marking the StaticArray as transparent can be assumed safe as it cannot escape, it seems appropriate to merge this PR to fix the issue for now and do further investigations as a follow-up. Can you sync with main and add a comment on the new line why this is done?

@HerrCai0907 HerrCai0907 force-pushed the fix-template-literals-cause-gc-crash branch from 61fa935 to b5e3e9e Compare June 9, 2022 09:28
@dcodeIO dcodeIO merged commit 4b0b9ae into AssemblyScript:main Jun 9, 2022
@HerrCai0907 HerrCai0907 deleted the fix-template-literals-cause-gc-crash branch June 24, 2022 12:12
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.

2 participants