We have an array of structs like this one:
struct allocation
{
size_t alloc_size_;
char* alloc_memory_;
};
static struct allocation allocations[] =
{{1024, NULL},{2048, NULL},};
later on in main()
it's members alloc_memory_
are initialized using numa_alloc_onnode()
.
So the question: is alloc_memory_
also static and where they are located (heap, stack) ? If they are not static then how to make them static?