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
path: root/src
diff options
context:
space:
mode:
authorAntoine du Hamel <duhamelantoine1995@gmail.com>2022-04-20 01:46:37 +0300
committerGitHub <noreply@github.com>2022-04-20 01:46:37 +0300
commit1e761654d3d93e4568d1228b92d1f3a09e92d078 (patch)
treeb003499fede78612e88e01c82f591b7d7ae503bd /src
parent51fd5db4c18da2685b3825fb5617f7f968859299 (diff)
doc: consolidate use of multiple-byte units
Refs: https://en.wikipedia.org/wiki/Byte#Multiple-byte_units PR-URL: https://github.com/nodejs/node/pull/42587 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/inspector_agent.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inspector_agent.cc b/src/inspector_agent.cc
index 5fc533741d7..34bb11e7d71 100644
--- a/src/inspector_agent.cc
+++ b/src/inspector_agent.cc
@@ -97,11 +97,11 @@ static int StartDebugSignalHandler() {
pthread_attr_t attr;
CHECK_EQ(0, pthread_attr_init(&attr));
#if defined(PTHREAD_STACK_MIN) && !defined(__FreeBSD__)
- // PTHREAD_STACK_MIN is 2 KB with musl libc, which is too small to safely
- // receive signals. PTHREAD_STACK_MIN + MINSIGSTKSZ is 8 KB on arm64, which
+ // PTHREAD_STACK_MIN is 2 KiB with musl libc, which is too small to safely
+ // receive signals. PTHREAD_STACK_MIN + MINSIGSTKSZ is 8 KiB on arm64, which
// is the musl architecture with the biggest MINSIGSTKSZ so let's use that
// as a lower bound and let's quadruple it just in case. The goal is to avoid
- // creating a big 2 or 4 MB address space gap (problematic on 32 bits
+ // creating a big 2 or 4 MiB address space gap (problematic on 32 bits
// because of fragmentation), not squeeze out every last byte.
// Omitted on FreeBSD because it doesn't seem to like small stacks.
const size_t stack_size = std::max(static_cast<size_t>(4 * 8192),