Skip to content

buffer: backport --zero-fill-buffers command line option - #5748

Closed
jasnell wants to merge 1 commit into
nodejs:v0.12-stagingfrom
jasnell:v0.12-zero-fill-buffers
Closed

buffer: backport --zero-fill-buffers command line option#5748
jasnell wants to merge 1 commit into
nodejs:v0.12-stagingfrom
jasnell:v0.12-zero-fill-buffers

Conversation

@jasnell

Copy link
Copy Markdown
Member

Pull Request check-list

  • Does make -j8 test (UNIX) or vcbuild test nosign (Windows) pass with
    this change (including linting)?
  • Is the commit message formatted according to [CONTRIBUTING.md][0]?
  • If this change fixes a bug (or a performance problem), is a regression
    test (or a benchmark) included?
  • Is a documentation update included (if this change modifies
    existing APIs, or introduces new ones)?

Affected core subsystem(s)

buffer

Description of change

This backports the --zero-fill-buffers command line flag introduced in master. When used, all Buffer and SlowBuffer instances will zero fill by default.

This does not backport any of the other Buffer API or behavior changes.

Note: My intent is to open similar backports for --zero-fill-buffer in v5, v4, and v0.10

/cc @trevnorris @nodejs/lts

@jasnelljasnell added buffer Issues and PRs related to the buffer subsystem. semver-minor PRs that contain new features and should be released in the next minor version. v0.12 labels Mar 16, 2016
@jasnell

Copy link
Copy Markdown
MemberAuthor

Talking to @trevnorris about this, he suggested just changing the behavior of smalloc if --zero-fill-buffers is set.

@jasnell
jasnellforce-pushed the v0.12-zero-fill-buffers branch from c829599 to 4c16bd6CompareMarch 16, 2016 23:48
This backports the --zero-fill-buffers command line flag introduced
in master. When used, all Buffer and SlowBuffer instances will zero
fill by default.
This does *not* backport any of the other Buffer API or behavior
changes.
@jasnell
jasnellforce-pushed the v0.12-zero-fill-buffers branch from 4c16bd6 to 9841681CompareMarch 17, 2016 00:22
@jasnell

Copy link
Copy Markdown
MemberAuthor

@nodejs/ctc

@jasnell

Copy link
Copy Markdown
MemberAuthor

CTC decision today to hold off landing this in v0.12 for now. Will keep the PR open. @nodejs/lts

@jasnell

Copy link
Copy Markdown
MemberAuthor

Closing. Can reopen if we ultimately decide to do this.

@jasnelljasnell closed this May 1, 2016
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bufferIssues and PRs related to the buffer subsystem.semver-minorPRs that contain new features and should be released in the next minor version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@jasnell