Skip to content

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 <[email protected]>
@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 <[email protected]>
@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 <[email protected]>
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 <[email protected]>
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