diff --git a/core/mem/alloc.odin b/core/mem/alloc.odin index e4357fe18..fa2f73767 100644 --- a/core/mem/alloc.odin +++ b/core/mem/alloc.odin @@ -64,7 +64,7 @@ delete_slice :: proc(array: $T/[]$E, allocator := context.allocator, loc := #cal } delete_map :: proc(m: $T/map[$K]$V, loc := #caller_location) { raw := transmute(Raw_Map)m; - delete_dynamic_array(raw.hashes, loc); + delete_slice(raw.hashes); free(raw.entries.data, raw.entries.allocator, loc); } diff --git a/core/runtime/core.odin b/core/runtime/core.odin index fb428d8fe..4e3ef0c18 100644 --- a/core/runtime/core.odin +++ b/core/runtime/core.odin @@ -780,8 +780,6 @@ __dynamic_map_rehash :: proc(using header: Map_Header, new_count: int, loc := #c if m.entries.allocator.procedure != nil { c.allocator = m.entries.allocator; } - __print_u64(os.stdout, u64(uintptr(c.allocator.data))); os.write_byte(os.stdout, '\n'); - __print_u64(os.stdout, u64(uintptr(m.entries.allocator.data))); os.write_byte(os.stdout, '\n'); context = c; __dynamic_array_reserve(&nm.entries, entry_size, entry_align, m.entries.len, loc);