Skip to content

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

Merged
dcodeIO merged 1 commit into
AssemblyScript:mainfrom
HerrCai0907:fix-template-literals-cause-gc-crash
Jun 9, 2022
Merged

fix: template literal crash GC(#2178)#2295
dcodeIO merged 1 commit into
AssemblyScript:mainfrom
HerrCai0907:fix-template-literals-cause-gc-crash

Conversation

@HerrCai0907

@HerrCai0907 HerrCai0907 commented May 16, 2022

Copy link
Copy Markdown
Member

⯈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

dcodeIO commented Jun 9, 2022

Copy link
Copy Markdown
Member

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