mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-06 04:36:36 +02:00
Added safety check
This commit is contained in:
parent
365e26a2a5
commit
7c49e59ad6
1 changed files with 2 additions and 0 deletions
2
gc.c
2
gc.c
|
@ -907,7 +907,9 @@ void gc_collector_trace()
|
||||||
if (clean) {
|
if (clean) {
|
||||||
pthread_mutex_lock(&(m->lock));
|
pthread_mutex_lock(&(m->lock));
|
||||||
if (m->last_read < m->last_write) {
|
if (m->last_read < m->last_write) {
|
||||||
|
#if GC_SAFETY_CHECKS
|
||||||
fprintf(stderr, "JAE DEBUG - might have exited trace early\n");
|
fprintf(stderr, "JAE DEBUG - might have exited trace early\n");
|
||||||
|
#endif
|
||||||
clean = 0;
|
clean = 0;
|
||||||
}
|
}
|
||||||
else if (m->pending_writes) {
|
else if (m->pending_writes) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue