Nicolas Cannasse 2 years ago
parent
commit
cdb7704090
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/gc.c

+ 1 - 1
src/gc.c

@@ -895,7 +895,7 @@ static void mark_thread_main( void *param ) {
 	while( true ) {
 		hl_semaphore_acquire(inf->ready);
 		inf->mark_count += gc_flush_mark(&inf->stack);
-		while( !atomic_bit_unset(&mark_threads_active, 1 << index) ) {};
+		if( !atomic_bit_unset(&mark_threads_active, 1 << index) ) hl_fatal("assert");
 		if( mark_threads_active == 0 ) hl_semaphore_release(mark_threads_done);
 	}
 }