diff options
author | Jakub Alba <jakub@yakubin.com> | 2023-12-17 20:59:44 +0100 |
---|---|---|
committer | Jakub Alba <jakub@yakubin.com> | 2023-12-17 20:59:44 +0100 |
commit | 8225269105bf96407e00f11f21b7df0469b7b9a7 (patch) | |
tree | ccbea7becb0443d670e715d7ea0e72e0588adef3 | |
parent | a49cf106ded1adc31e9b5ef3bb6c19d7b9a6a545 (diff) | |
download | reserve-and-commit-8225269105bf96407e00f11f21b7df0469b7b9a7.tar.xz reserve-and-commit-8225269105bf96407e00f11f21b7df0469b7b9a7.zip |
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-x | test_arena.cpp | 2 |
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);
|