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

src: extract AllocatedBuffer from env.h #33291

Closed
wants to merge 3 commits into from

Conversation

jasnell
Copy link
Member

@jasnell jasnell commented May 7, 2020

Cleanup up env.h by removing things that are not
specific to Environment.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. labels May 7, 2020
@jasnell jasnell requested a review from addaleax May 7, 2020 20:34
@nodejs-github-bot
Copy link
Collaborator

Copy link
Member

@addaleax addaleax left a comment

Choose a reason for hiding this comment

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

LGTM but I feel like it’s worth pointing out that AllocatedBuffers are tied to an Environment instance, and that with V8 8.3, the need for this is probably going to go away anyway.

src/env.cc Outdated Show resolved Hide resolved
@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

This comment has been minimized.

@addaleax
Copy link
Member

Fwiw, if this lands before #33381 then #33381 would likely include a revert of this.

@jasnell
Copy link
Member Author

jasnell commented May 14, 2020

Couldn't we just combine the two set of changes?

@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented May 14, 2020

CI: https://ci.nodejs.org/job/node-test-pull-request/31336/

(btw, repeated ci's here are because there's a build error happening in a couple of CI environments that I'm not able to recreate locally)

@addaleax
Copy link
Member

I mean, yeah, if you prefer. But ultimately the goal is for AllocatedBuffer to go away anyway.

@jasnell
Copy link
Member Author

jasnell commented May 14, 2020

But ultimately the goal is for AllocatedBuffer to go away anyway.

Yep, that I know. It's partly why I wanted to separate it out from env.h in the first place.

@jasnell
Copy link
Member Author

jasnell commented May 14, 2020

@addaleax... ok, I've pulled in the changes from #33381 here. Still blocked on #33321

@jasnell jasnell added the blocked PRs that are blocked by other issues or PRs. label May 14, 2020
@jasnell jasnell requested review from addaleax and devnexen May 14, 2020 19:53
Copy link
Member

@addaleax addaleax left a comment

Choose a reason for hiding this comment

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

Still LGTM 👍

@addaleax addaleax added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. and removed blocked PRs that are blocked by other issues or PRs. labels May 16, 2020
@nodejs-github-bot
Copy link
Collaborator

@BridgeAR BridgeAR added the wip Issues and PRs that are still a work in progress. label May 23, 2020
@BridgeAR
Copy link
Member

Ping @jasnell

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@BridgeAR BridgeAR added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. and removed wip Issues and PRs that are still a work in progress. labels May 30, 2020
@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented May 30, 2020

Cleanup up env.h by removing things that are not
specific to `Environment`.
Alternative to nodejs#33381 that
reimplements that change on top of moving AllocatedBuffer out
of env.h
@nodejs-github-bot
Copy link
Collaborator

jasnell added a commit that referenced this pull request May 30, 2020
Cleanup up env.h by removing things that are not
specific to `Environment`.

PR-URL: #33291
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: David Carlier <devnexen@gmail.com>
jasnell added a commit that referenced this pull request May 30, 2020
Alternative to #33381 that
reimplements that change on top of moving AllocatedBuffer out
of env.h

PR-URL: #33291
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: David Carlier <devnexen@gmail.com>
jasnell added a commit that referenced this pull request May 30, 2020
PR-URL: #33291
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: David Carlier <devnexen@gmail.com>
@jasnell
Copy link
Member Author

jasnell commented May 30, 2020

Landed in 56ff1ee, e2cd715, 830ef81

@jasnell jasnell closed this May 30, 2020
codebytere pushed a commit that referenced this pull request Jun 18, 2020
Cleanup up env.h by removing things that are not
specific to `Environment`.

PR-URL: #33291
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: David Carlier <devnexen@gmail.com>
codebytere pushed a commit that referenced this pull request Jun 18, 2020
Alternative to #33381 that
reimplements that change on top of moving AllocatedBuffer out
of env.h

PR-URL: #33291
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: David Carlier <devnexen@gmail.com>
codebytere pushed a commit that referenced this pull request Jun 18, 2020
PR-URL: #33291
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: David Carlier <devnexen@gmail.com>
@codebytere codebytere mentioned this pull request Jun 28, 2020
codebytere pushed a commit that referenced this pull request Jun 30, 2020
Cleanup up env.h by removing things that are not
specific to `Environment`.

PR-URL: #33291
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: David Carlier <devnexen@gmail.com>
codebytere pushed a commit that referenced this pull request Jun 30, 2020
Alternative to #33381 that
reimplements that change on top of moving AllocatedBuffer out
of env.h

PR-URL: #33291
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: David Carlier <devnexen@gmail.com>
codebytere pushed a commit that referenced this pull request Jun 30, 2020
PR-URL: #33291
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: David Carlier <devnexen@gmail.com>
@codebytere
Copy link
Member

@jasnell should this go to v12.x? It looks like it'll need a manual backport if yes but if no just remove the label :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants