library/src/garbage_collection/BP_MemoryGarbageCollector.cc
// blockparty garbage collection version of clear alloc
blockparty garbage collection version of clear alloc
blockparty garbage collection version of clear alloc
void * BP_calloc(P_BP_GARBAGE_COLLECTOR_DATA gc, char *msg, size_t alloc_size, size_t clr_size)
{
	void * new_ptr = (void *) bpcalloc(alloc_size, clr_size);
	BP_GarbageCollectorLogChunk(gc, NULL, new_ptr, alloc_size, BP_GARBAGE_COLLECTOR_DATA_ALLOC_REALLOC);
	return new_ptr;
}
void * BP_calloc ( P_BP_GARBAGE_COLLECTOR_DATA gc , char * msg , size_t alloc_size , size_t clr_size ) { void * new_ptr = ( void * ) bpcalloc ( alloc_size , clr_size ) ; BP_GarbageCollectorLogChunk ( gc , NULL , new_ptr , alloc_size , BP_GARBAGE_COLLECTOR_DATA_ALLOC_REALLOC ) ; return new_ptr ; }
blockparty garbage collection version of clear alloc
blockparty garbage collection version of clear alloc
// allocate new pointer // log the garbage collector chunk (add list item) // return the new chunk