|
@@ -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);
|
|
|
}
|
|
|
}
|