|
@@ -886,6 +886,10 @@ tracking_allocator_proc :: proc(allocator_data: rawptr, mode: Allocator_Mode,
|
|
}
|
|
}
|
|
case .Free:
|
|
case .Free:
|
|
delete_key(&data.allocation_map, old_memory)
|
|
delete_key(&data.allocation_map, old_memory)
|
|
|
|
+ case .Free_All:
|
|
|
|
+ if data.clear_on_free_all {
|
|
|
|
+ clear_map(&data.allocation_map)
|
|
|
|
+ }
|
|
case .Resize:
|
|
case .Resize:
|
|
if old_memory != result_ptr {
|
|
if old_memory != result_ptr {
|
|
delete_key(&data.allocation_map, old_memory)
|
|
delete_key(&data.allocation_map, old_memory)
|
|
@@ -898,11 +902,6 @@ tracking_allocator_proc :: proc(allocator_data: rawptr, mode: Allocator_Mode,
|
|
location = loc,
|
|
location = loc,
|
|
}
|
|
}
|
|
|
|
|
|
- case .Free_All:
|
|
|
|
- if data.clear_on_free_all {
|
|
|
|
- clear_map(&data.allocation_map)
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
case .Query_Features:
|
|
case .Query_Features:
|
|
set := (^Allocator_Mode_Set)(old_memory)
|
|
set := (^Allocator_Mode_Set)(old_memory)
|
|
if set != nil {
|
|
if set != nil {
|