Skip to content
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

Prevent infinite deoptimizations #3280

Merged
merged 1 commit into from Dec 12, 2019

Conversation

lukastaegert
Copy link
Member

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

List any relevant issue numbers:
Resolves #3279

Description

This will resolve a situation that could result in the build hanging and eventually crashing due to an out-of-memory issue. Basically it was possible that while an AST node was deoptimizing dependent nodes, the loop it was iterating over was continually extended while it was being iterated.

@codecov
Copy link

codecov bot commented Dec 12, 2019

Codecov Report

Merging #3280 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3280      +/-   ##
==========================================
+ Coverage   93.12%   93.13%   +<.01%     
==========================================
  Files         170      170              
  Lines        5960     5968       +8     
  Branches     1781     1781              
==========================================
+ Hits         5550     5558       +8     
  Misses        219      219              
  Partials      191      191
Impacted Files Coverage Δ
src/ast/variables/LocalVariable.ts 89.01% <100%> (+0.24%) ⬆️
src/ast/nodes/LogicalExpression.ts 98.7% <100%> (+0.03%) ⬆️
src/ast/nodes/MemberExpression.ts 98.27% <100%> (+0.03%) ⬆️
src/ast/nodes/ConditionalExpression.ts 96.15% <100%> (+0.1%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a562ec5...737f794. Read the comment docs.

@lukastaegert lukastaegert merged commit 9f77b73 into master Dec 12, 2019
@lukastaegert lukastaegert deleted the gh-3279-prevent-infinite-deoptimizations branch December 12, 2019 06:10
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.

v1.27.10: compilation hangs and outputs "JavaScript heap out of memory"
1 participant