Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2018-09-24 23:32:03 +0300
committerAnna Henningsen <anna@addaleax.net>2018-10-04 00:08:06 +0300
commitcc31d8b2d4d439955ba25dfdc83c8445ce0c850d (patch)
treeba0c1d98a26e4dcda46c4128f8dbae4237b43687 /src/node_buffer.cc
parentd527dde3600655eae7ce0ba5da9263ec4560cd11 (diff)
src: remove public API for option variables
PR-URL: https://github.com/nodejs/node/pull/23069 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Shingo Inoue <leko.noor@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'src/node_buffer.cc')
-rw-r--r--src/node_buffer.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/node_buffer.cc b/src/node_buffer.cc
index 1a7f01a7342..e3a1515d6a3 100644
--- a/src/node_buffer.cc
+++ b/src/node_buffer.cc
@@ -56,14 +56,12 @@
namespace node {
-// if true, all Buffer and SlowBuffer instances will automatically zero-fill
-bool zero_fill_all_buffers = false;
-
namespace {
inline void* BufferMalloc(size_t length) {
- return zero_fill_all_buffers ? node::UncheckedCalloc(length) :
- node::UncheckedMalloc(length);
+ return per_process_opts->zero_fill_all_buffers ?
+ node::UncheckedCalloc(length) :
+ node::UncheckedMalloc(length);
}
} // namespace