The ROme OpTimistic Simulator  3.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
model_allocator.h
Go to the documentation of this file.
1 
11 #pragma once
12 
13 #include <datatypes/array.h>
14 #include <mm/buddy/buddy.h>
15 
16 extern void model_allocator_lp_init(void);
17 extern void model_allocator_lp_fini(void);
18 extern void model_allocator_checkpoint_take(array_count_t ref_i);
19 extern void model_allocator_checkpoint_next_force_full(void);
20 extern array_count_t model_allocator_checkpoint_restore(array_count_t ref_i);
21 extern array_count_t model_allocator_fossil_lp_collect(array_count_t tgt_ref_i);
22 
23 extern void __write_mem(void *ptr, size_t siz);
24 
25 extern void *malloc_mt(size_t req_size);
26 extern void *calloc_mt(size_t nmemb, size_t req_size);
27 extern void free_mt(void *ptr);
28 extern void *realloc_mt(void *ptr, size_t req_size);
buddy.h
A Buddy System implementation.
array.h
Dynamic array datatype.
array_count_t
uint_fast32_t array_count_t
The type used to handle dynamic arrays count of elements and capacity.
Definition: array.h:21