fix code allocation bug

svn: r11967
This commit is contained in:
Matthew Flatt 2008-10-07 19:26:42 +00:00
parent 89f2315374
commit a584304aa2

View File

@ -402,7 +402,7 @@ static void *generate_one(mz_jit_state *old_jitter,
buffer = scheme_malloc_gcable_code(size); buffer = scheme_malloc_gcable_code(size);
#endif #endif
} else { } else {
buffer = malloc(size); buffer = scheme_malloc_code(size);
} }
RECORD_CODE_SIZE(size); RECORD_CODE_SIZE(size);
} else if (old_jitter) { } else if (old_jitter) {