Added safety check

This commit is contained in:
Justin Ethier 2016-02-23 21:59:12 -05:00
parent 365e26a2a5
commit 7c49e59ad6

2
gc.c
View file

@ -907,7 +907,9 @@ void gc_collector_trace()
if (clean) {
pthread_mutex_lock(&(m->lock));
if (m->last_read < m->last_write) {
#if GC_SAFETY_CHECKS
fprintf(stderr, "JAE DEBUG - might have exited trace early\n");
#endif
clean = 0;
}
else if (m->pending_writes) {