Skip to content

buffer: don't set `kNoZeroFill` flag in allocUnsafe

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?
  • 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

If kNoZeroFill is set here, it won't be reset in case of pooled allocation. In case of "slow" allocation it will be set later anyway.

Fixes: https://github.com/nodejs/node/issues/6006

Merge request reports

Loading