We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c27abca commit a0c1e48Copy full SHA for a0c1e48
src/base_alloc/base_alloc_global.c
@@ -41,6 +41,7 @@ struct base_alloc_t {
41
static struct base_alloc_t BASE_ALLOC = {.ac_sizes = ALLOCATION_CLASSES};
42
43
void umf_ba_destroy_global(void) {
44
+ LOG_DEBUG("destroying global base allocator");
45
ba_is_destroyed = true;
46
47
for (int i = 0; i < NUM_ALLOCATION_CLASSES; i++) {
@@ -73,7 +74,8 @@ static void umf_ba_create_global(void) {
73
74
size_t smallestSize = BASE_ALLOC.ac_sizes[0];
75
BASE_ALLOC.smallest_ac_size_log2 = utils_msb64(smallestSize);
76
- LOG_DEBUG("UMF base allocator created");
77
+ LOG_DEBUG("global base allocator created");
78
+ ba_is_destroyed = false;
79
}
80
81
// returns index of the allocation class for a given size
0 commit comments