Skip to content

Commit

Permalink
flambda-backend: Reorder call to caml_domain_external_interrupt_hook (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mshinwell authored Jan 2, 2024
1 parent ecabd07 commit 5d1181f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion runtime/domain.c
Original file line number Diff line number Diff line change
Expand Up @@ -1681,10 +1681,12 @@ void caml_poll_gc_work(void)
caml_poll_gc_work is called. */
}

caml_reset_young_limit(d);

if (atomic_load_acquire(&d->requested_external_interrupt)) {
/* This function might allocate (e.g. upon a systhreads yield). */
caml_domain_external_interrupt_hook();
}
caml_reset_young_limit(d);
}

void caml_handle_gc_interrupt(void)
Expand Down

0 comments on commit 5d1181f

Please sign in to comment.