GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Revert "core: set PROVIDER type as Persistent class id" by bnoordhuis · Pull Request #1827 · nodejs/node

Conversation

@bnoordhuis

@bnoordhuis bnoordhuis commented May 28, 2015

Copy link
Copy Markdown
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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bnoordhuis

bnoordhuis commented May 28, 2015

Copy link
Copy Markdown
Member Author

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@trevnorris

trevnorris commented May 28, 2015

Copy link
Copy Markdown
Contributor

LGTM.

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bnoordhuis
Revert "core: set PROVIDER type as Persistent class id"
3a1bc06
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 force-pushed the revert-3c44100 branch from 10ee951 to 3a1bc06 Compare May 28, 2015 19:50
@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
test: add heap profiler add-on regression test
ebe6057
Add a regression test for nodejs#1827.
@bnoordhuis bnoordhuis mentioned this pull request May 28, 2015
test: add heap profiler add-on regression test #1828
Merged
bnoordhuis added a commit to bnoordhuis/io.js that referenced this pull request May 28, 2015
@bnoordhuis
test: add heap profiler add-on regression test
4e90c82
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
Release proposal: v2.2.0 #1808
Merged
andrewdeandrade pushed a commit to andrewdeandrade/node that referenced this pull request Jun 3, 2015
@bnoordhuis @andrewdeandrade
Revert "core: set PROVIDER type as Persistent class id"
08b0b88
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
@bnoordhuis @andrewdeandrade
test: add heap profiler add-on regression test
b2ce987
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

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@bnoordhuis @trevnorris
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.