aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Alba <jakub@yakubin.com>2023-12-17 20:59:44 +0100
committerJakub Alba <jakub@yakubin.com>2023-12-17 20:59:44 +0100
commit8225269105bf96407e00f11f21b7df0469b7b9a7 (patch)
treeccbea7becb0443d670e715d7ea0e72e0588adef3
parenta49cf106ded1adc31e9b5ef3bb6c19d7b9a6a545 (diff)
downloadreserve-and-commit-master.tar.xz
reserve-and-commit-master.zip
fix a commentHEADmaster
In an older version of this code, Arena used to allocate memory in 1MiB increments, but I changed it later to just a page of memory.
-rwxr-xr-xtest_arena.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test_arena.cpp b/test_arena.cpp
index 545e4ba..fbc0b36 100755
--- a/test_arena.cpp
+++ b/test_arena.cpp
@@ -4,7 +4,7 @@ DECL_MAIN {
// Reserving 16GiB.
auto a = Arena(16ULL * 1024ULL * 1024ULL * 1024ULL);
- // Committing 1MiB to make space for 4 bytes (with some headroom).
+ // Committing a full page to make space for 4 bytes (with some headroom).
bool committed = a.Grow(4);
assert(committed);