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

Unpin redeferred functions, etc. #1929

Closed
wants to merge 1 commit into from
Closed

Conversation

pleath
Copy link
Contributor

@pleath pleath commented Nov 6, 2016

  1. On redeferral, remove FunctionBody's from the dictionary on the source info. That dictionary is non-leaf and pins the contents; changing it to leaf seems feasible and is recommended by a comment, but it seems best to do it outside this change. 2. Handle re-use of FunctionBody for which we've already allocated literal regexes. 3. Add some rudimentary redeferral tracing, to which I'll add this week.

eligible for deferred parsing (e.g., not arrow functions, not
functions-in-block). This is experimental behavior, off by default. Define
an 'on' mode in which all eligible functions are redeferred on GC, as well
as a 'stress' mode in which all candidates are redeferred on each stack
probe. This change is built on a previous PR that refactors the
FunctionBody hierarchy to make it easier to toggle between deferred and
fully-compiled states.

1. On redeferral, remove FunctionBody's from the dictionary on the source info. That dictionary is non-leaf and pins the contents; changing it to leaf seems feasible and is recommended by a comment, but it seems best to do it outside this change. 2. Handle re-use of FunctionBody for which we've already allocated literal regexes.
@pleath
Copy link
Contributor Author

pleath commented Nov 8, 2016

Subsumed by #1585.

@pleath pleath closed this Nov 8, 2016
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