Skip to content

Commit

Permalink
Remove unnecessary assignment
Browse files Browse the repository at this point in the history
This gets updated at the end of a collection anyway so the additional
check doesn't add anything except overcomplicate things.
  • Loading branch information
jacob-hughes committed Aug 22, 2024
1 parent 220bc1f commit 56cc901
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion reclaim.c
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,6 @@ static void* init_finalize_thread(void *arg)
{
while(1) {
pthread_mutex_lock(&flzr_mtx);
flzr_can_work = GC_should_invoke_finalizers();
while (flzr_can_work == 0) {
pthread_cond_wait(&flzr_t_has_work, &flzr_mtx);
}
Expand Down

0 comments on commit 56cc901

Please sign in to comment.