mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Added temporary debug code to stop after 2 major GC's
This commit is contained in:
parent
849b28b54c
commit
25303fc4a5
1 changed files with 4 additions and 1 deletions
|
@ -9,6 +9,8 @@
|
|||
#include "cyclone/types.h"
|
||||
#include "cyclone/runtime.h"
|
||||
|
||||
int JAE_DEBUG = 0;
|
||||
|
||||
/* Error checking section - type mismatch, num args, etc */
|
||||
/* Type names to use for error messages */
|
||||
const char *tag_names[21] = { \
|
||||
|
@ -2716,7 +2718,8 @@ fprintf(stdout, "DEBUG, starting major mark/sweep GC\n"); // JAE DEBUG
|
|||
}
|
||||
max_freed = gc_collect(Cyc_heap, &freed);
|
||||
printf("done, freed = %d, max_freed = %d\n", freed, max_freed);
|
||||
//exit(1); // JAE DEBUG
|
||||
JAE_DEBUG++;
|
||||
if (JAE_DEBUG == 2) exit(1); // JAE DEBUG
|
||||
}
|
||||
|
||||
//fprintf(stdout, "DEBUG, finished minor GC\n"); // JAE DEBUG
|
||||
|
|
Loading…
Add table
Reference in a new issue