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

This commit is contained in:
2025-01-12 21:41:15 -05:00
parent 37ec315a91
commit 5a7b8b463b
11 changed files with 77 additions and 40 deletions
+2
View File
@@ -692,6 +692,8 @@ _unmarshal_map :: proc(d: Decoder, v: any, ti: ^reflect.Type_Info, hdr: Header,
case reflect.Type_Info_Map:
raw_map := (^mem.Raw_Map)(v.data)
if raw_map.allocator.procedure == nil {
// Note(Ed) - Sectr Fork: I'm premmtively leaving this here incase it happens...
runtime.debug_trap()
raw_map.allocator = context.allocator
}
+2
View File
@@ -526,6 +526,8 @@ unmarshal_object :: proc(p: ^Parser, v: any, end_token: Token_Kind) -> (err: Unm
}
raw_map := (^mem.Raw_Map)(v.data)
if raw_map.allocator.procedure == nil {
// Note(Ed) - Sectr Fork: I'm premmtively leaving this here incase it happens...
runtime.debug_trap()
raw_map.allocator = p.allocator
}