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 — core: set PROVIDER type as Persistent class id by trevnorris · Pull Request #1730 · nodejs/node

Conversation

@trevnorris

@trevnorris trevnorris commented May 18, 2015

Copy link
Copy Markdown
Contributor

Pass along the PROVIDER type, that is already passed to AsyncWrap, along
to BaseObject to set the handle_'s class id. This will allow all
Persistents to be transversed and uniquely identified by what type they
are using APIs such as v8::PersistentHandleVisitor.

R=@bnoordhuis

Sorry, something went wrong.

Uh oh!

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

All reactions
@trevnorris
core: set PROVIDER type as Persistent class id
2cf7087
Pass along the PROVIDER type, that is already passed to AsyncWrap, along
to BaseObject to set the handle_'s class id. This will allow all
Persistents to be transversed and uniquely identified by what type they
are using APIs such as v8::PersistentHandleVisitor.
@trevnorris

trevnorris commented May 18, 2015

Copy link
Copy Markdown
Contributor Author

For anyone wondering about possible performance implications, I haven't been able to measure any difference at even the nanosecond level of any micro-benchmarks.

All reactions

Sorry, something went wrong.

Uh oh!

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

@brendanashworth brendanashworth added the c++ Issues and PRs that require attention from people who are familiar with C++. label May 19, 2015
bnoordhuis
bnoordhuis reviewed May 19, 2015
View reviewed changes
Comment thread src/base-object-inl.h

@bnoordhuis bnoordhuis May 19, 2015

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can I suggest you call it class_id? p_id leaves the reader guessing.

Sorry, something went wrong.

Uh oh!

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

All reactions
@bnoordhuis

bnoordhuis commented May 19, 2015

Copy link
Copy Markdown
Member

LGTM with a suggestion.

All reactions

Sorry, something went wrong.

Uh oh!

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

trevnorris added a commit that referenced this pull request May 19, 2015
@trevnorris
core: set PROVIDER type as Persistent class id
3c44100
Pass along the PROVIDER type, that is already passed to AsyncWrap, along
to BaseObject to set the handle_'s class id. This will allow all
Persistents to be transversed and uniquely identified by what type they
are using APIs such as v8::PersistentHandleVisitor.

PR-URL: #1730
Reviewed-By: Ben Noordhuis <[email protected]>
@trevnorris

trevnorris commented May 19, 2015

Copy link
Copy Markdown
Contributor Author

Thanks. Landed w/ suggestion in 3c44100.

All reactions

Sorry, something went wrong.

Uh oh!

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

@trevnorris trevnorris closed this May 19, 2015
@trevnorris
trevnorris deleted the propagate-provider-to-class-id branch May 19, 2015 15:46
Fishrock123 pushed a commit to Fishrock123/node that referenced this pull request May 19, 2015
@trevnorris @Fishrock123
core: set PROVIDER type as Persistent class id
575738b
Pass along the PROVIDER type, that is already passed to AsyncWrap, along
to BaseObject to set the handle_'s class id. This will allow all
Persistents to be transversed and uniquely identified by what type they
are using APIs such as v8::PersistentHandleVisitor.

PR-URL: nodejs#1730
Reviewed-By: Ben Noordhuis <[email protected]>
@rvagg rvagg mentioned this pull request May 23, 2015
Release proposal v2.1.0 #1777
Closed
andrewdeandrade pushed a commit to andrewdeandrade/node that referenced this pull request Jun 3, 2015
@trevnorris @andrewdeandrade
core: set PROVIDER type as Persistent class id
336902a
Pass along the PROVIDER type, that is already passed to AsyncWrap, along
to BaseObject to set the handle_'s class id. This will allow all
Persistents to be transversed and uniquely identified by what type they
are using APIs such as v8::PersistentHandleVisitor.

PR-URL: nodejs/node#1730
Reviewed-By: Ben Noordhuis <[email protected]>
@refack refack mentioned this pull request Oct 18, 2018
build: spawn make test-ci with -j1 #23733
Merged
3 tasks done
This was referenced Jul 27, 2020
[Snyk] Security upgrade marked from 0.3.6 to 1.1.1 GregorFendt/node#6
Open
[Snyk] Security upgrade marked from 0.3.19 to 1.1.1 s4sc/node#15
Open
[Snyk] Security upgrade marked from 0.3.19 to 1.1.1 scality/node#9
Open
[Snyk] Security upgrade marked from 0.3.6 to 1.1.1 KamilPolivka/node#8
Open
[Snyk] Security upgrade marked from 0.3.19 to 1.1.1 erdun/node#25
Open
[Snyk] Security upgrade marked from 0.3.19 to 1.1.1 enterstudio/node#15
Open
[Snyk] Security upgrade marked from 0.6.3 to 1.1.1 adamlaska/node#39
Open
[Snyk] Security upgrade marked from 0.3.19 to 1.1.1 solebox/node#16
Open
[Snyk] Security upgrade marked from 0.3.6 to 1.1.1 saeedahassan/node#22
Open
[Snyk] Security upgrade marked from 0.3.6 to 1.1.1 olegnn/node#23
Open
[Snyk] Security upgrade marked from 0.3.19 to 1.1.1 pmq20/node#25
Open
[Snyk] Security upgrade marked from 0.3.6 to 1.1.1 saurabharch/node#9
Open
[Snyk] Security upgrade marked from 0.3.19 to 1.1.1 mkg20001/node#22
Open
@snyk-bot snyk-bot mentioned this pull request Aug 11, 2020
[Snyk] Fix for 3 vulnerabilities turkdevops/node#11
Merged
@snyk-bot snyk-bot mentioned this pull request Jan 20, 2023
[Snyk] Upgrade commander from 2.11.0 to 9.4.1 Supermajestcd/node#3
Open
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

c++ Issues and PRs that require attention from people who are familiar with C++.

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.

3 participants

@trevnorris @bnoordhuis @brendanashworth
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.