Added notes

This commit is contained in:
Justin Ethier 2015-10-16 22:44:42 -04:00
parent e941b19db4
commit 076a9316e0

View file

@ -2417,6 +2417,7 @@ void GC(cont, args, num_args) closure cont; object *args; int num_args;
int i; int i;
int moveBufLen = 128, mbIdx = 0; int moveBufLen = 128, mbIdx = 0;
void **moved = alloca(sizeof(void *) * moveBufLen); void **moved = alloca(sizeof(void *) * moveBufLen);
int scani = 0, alloci = 0; // TODO: not quite sure how to do this yet, want to user pointers but realloc can move them... need to think about how this will work
// Prevent overrunning buffer // Prevent overrunning buffer
if (num_ans > NUM_GC_ANS) { if (num_ans > NUM_GC_ANS) {