Skip to content

Commit

Permalink
flambda-backend: Update GC phase assertion (#2358)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpw25 authored Apr 2, 2024
1 parent 8f12f05 commit fa8acc9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/major_gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ static caml_plat_mutex orphaned_lock = CAML_PLAT_MUTEX_INITIALIZER;

void caml_add_orphaned_finalisers (struct caml_final_info* f)
{
CAMLassert (caml_gc_phase == Phase_sweep_main);
CAMLassert (caml_gc_phase == Phase_sweep_main ||
caml_gc_phase == Phase_sweep_and_mark_main);
CAMLassert (!f->updated_first);
CAMLassert (!f->updated_last);

Expand Down

0 comments on commit fa8acc9

Please sign in to comment.