Removed implicit assignments for container allocators in the Base and Core packages

This commit is contained in:
ed
2025-01-12 21:41:15 -05:00
parent 37ec315a91
commit 5a7b8b463b
11 changed files with 77 additions and 40 deletions
+5 -3
View File
@@ -232,9 +232,11 @@ tracking_allocator_proc :: proc(
}
result_ptr := raw_data(result)
if data.allocation_map.allocator.procedure == nil {
data.allocation_map.allocator = context.allocator
}
// Note(Ed) - Sectr Fork: Not a fan. (I want it to assert)
// if data.allocation_map.allocator.procedure == nil {
// data.allocation_map.allocator = context.allocator
// }
assert(data.allocation_map.allocator.procedure != nil)
switch mode {
case .Alloc, .Alloc_Non_Zeroed: