Add Allocator_Mode.Alloc_Non_Zerored

This commit is contained in:
gingerBill committed 2022-09-22 12:12:57 +01:00
1 parent eb0d7465e2
commit 7f601c9535
21 files changed
+128 -65

No files matched your search

+7
View File
@@ -43,6 +43,13 @@ log_allocator_proc :: proc(allocator_data: rawptr, mode: runtime.Allocator_Mode,
args = {la.prefix, padding, size, alignment},
location = location,
)
case .Alloc_Non_Zeroed:
logf(
level=la.level,
fmt_str = "%s%s>>> ALLOCATOR(mode=.Alloc_Non_Zeroed, size=%d, alignment=%d)",
args = {la.prefix, padding, size, alignment},
location = location,
)
case .Free:
if old_size != 0 {
logf(