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

[WIP] work around v8 memory leak #12652

Closed
wants to merge 1 commit into from
Closed

[WIP] work around v8 memory leak #12652

wants to merge 1 commit into from

Conversation

stefanpenner
Copy link
Member

i don't really want to merge this, I'm likely going to explore an approach that doesn't trip up this specific v8 bug tomorrow.

@stefanpenner
Copy link
Member Author

this is mostly a joke PR (although it does fix a leak). A better path is to not shadow prototype functions from instances this way.

@homu
Copy link
Contributor

homu commented Dec 2, 2015

☔ The latest upstream changes (presumably #12666) made this pull request unmergeable. Please resolve the merge conflicts.

@joostdevries
Copy link

@stefanpenner I think this can be closed now that #12666 is merged. Nice workaround btw

stefanpenner referenced this pull request Jan 18, 2016
…ry / resolver access.

This fix changes the expectations of Registry to accept a `resolver`
that’s an object with a `resolve` method instead of a straight function.

This allows us to avoid closing over access to a resolver object inside
a function. It also allows us to avoid setting functions which shadow
prototype functions unnecessarily.

Setting `Registry#resolver` to a function is still allowed through a
constructor option. The `resolver` function will be converted into
an object with a `resolve` method and will result in a single deprecation
warning.

This fix also eliminates the need for application instances to override
their registry’s `normalizeFullName` and `makeToString` methods.
Instead, the fallback registry will be checked when evaluating these
methods before returning the defaults. Again, this avoids the need to
override instance functions that shadow prototype functions.

[Fixes #12618]

(cherry picked from commit 529bfc3)
@rwjblue rwjblue deleted the v8-leak branch July 22, 2016 19:57
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.

5 participants