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

Revert "core: set PROVIDER type as Persistent class id" #1827

Merged
merged 1 commit into from
May 28, 2015

Conversation

bnoordhuis
Copy link
Member

This reverts commit 3c44100.

Reverted for breaking node-heapdump[0].

AsyncWrap assigns a class id but does not set a v8::RetainedObjectInfo
provider callback with v8::HeapProfiler::SetWrapperClassInfoProvider().
The result is a null pointer dereference when taking a heap snapshot.

It can probably be solved by setting a generic provider callback inside
the AsyncWrap constructor but that may have performance ramifications
that need to be investigated first. I move to revert it for now.

[0] https://github.com/bnoordhuis/node-heapdump

R=@trevnorris

@bnoordhuis
Copy link
Member Author

By the way, I'm going to follow up with another PR that adds an add-on regression test.

@trevnorris
Copy link
Contributor

LGTM.

I'll benchmark the difference between setting that generic callback.

This reverts commit 3c44100.

Reverted for breaking node-heapdump[0].

AsyncWrap assigns a class id but does not set a v8::RetainedObjectInfo
provider callback with v8::HeapProfiler::SetWrapperClassInfoProvider().
The result is a null pointer dereference when taking a heap snapshot.

It can probably be solved by setting a generic provider callback inside
the AsyncWrap constructor but that may have performance ramifications
that need to be investigated first.  I move to revert it for now.

[0] https://github.com/bnoordhuis/node-heapdump

PR-URL: nodejs#1827
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
@bnoordhuis bnoordhuis closed this May 28, 2015
@bnoordhuis bnoordhuis deleted the revert-3c44100 branch May 28, 2015 19:50
@bnoordhuis bnoordhuis merged commit 3a1bc06 into nodejs:master May 28, 2015
bnoordhuis added a commit to bnoordhuis/io.js that referenced this pull request May 28, 2015
bnoordhuis added a commit to bnoordhuis/io.js that referenced this pull request May 28, 2015
Add a regression test for nodejs#1827.

PR-URL: nodejs#1828
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
@rvagg rvagg mentioned this pull request May 30, 2015
andrewdeandrade pushed a commit to andrewdeandrade/node that referenced this pull request Jun 3, 2015
This reverts commit 3c44100.

Reverted for breaking node-heapdump[0].

AsyncWrap assigns a class id but does not set a v8::RetainedObjectInfo
provider callback with v8::HeapProfiler::SetWrapperClassInfoProvider().
The result is a null pointer dereference when taking a heap snapshot.

It can probably be solved by setting a generic provider callback inside
the AsyncWrap constructor but that may have performance ramifications
that need to be investigated first.  I move to revert it for now.

[0] https://github.com/bnoordhuis/node-heapdump

PR-URL: nodejs/node#1827
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
andrewdeandrade pushed a commit to andrewdeandrade/node that referenced this pull request Jun 3, 2015
Add a regression test for nodejs/node#1827.

PR-URL: nodejs/node#1828
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
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