I am curious if any major projects have used Boehm GC? I'm particularly interested in if any gaming projects have used this garbage collector. If not, is Boehm GC bad for gaming projects?
I am impressed by the mere fact that simple code such as this Boehm GC can handle:
#include <stdio.h>
#include <stdlib.h>
#include <gc.h>
int main(void)
{
int i;
GC_INIT();
for (i = 0; i < 10000000; ++i)
{
int *p = GC_MALLOC(sizeof(int *));
//int *q = malloc(sizeof(int *));
printf("Heap size = %d\n", GC_get_heap_size());
}
return 0;
}
Are there any caveats to making a game using Boehm GC?
Thanks