aboutsummaryrefslogtreecommitdiff
path: root/src/common.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-02-18 21:30:25 +0000
committergingerBill <bill@gingerbill.org>2022-02-18 21:30:25 +0000
commit71df46456a4db2592e8cebbdd4c46dc8b58b5a24 (patch)
tree4152775ac24721cd026025d1e478d2eb9a254b41 /src/common.cpp
parentcd89d8a3c414a6929ec058a04aeec568d99505a5 (diff)
Minimize memory usage by having an arena per thread rather than an arena per file
Diffstat (limited to 'src/common.cpp')
-rw-r--r--src/common.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.cpp b/src/common.cpp
index ab2a46118..d3ee95b76 100644
--- a/src/common.cpp
+++ b/src/common.cpp
@@ -1021,7 +1021,7 @@ LoadedFileError load_file_32(char const *fullpath, LoadedFile *memory_mapped_fil
#endif
}
- gbFileContents fc = gb_file_read_contents(heap_allocator(), true, fullpath);
+ gbFileContents fc = gb_file_read_contents(permanent_allocator(), true, fullpath);
if (fc.size > I32_MAX) {
err = LoadedFile_FileTooLarge;