Skip to content

Commit

Permalink
fix work accounting in marking phase (ocaml#10449)
Browse files Browse the repository at this point in the history
  • Loading branch information
damiendoligez committed Jun 15, 2021
1 parent aa890e2 commit dfc9f19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,9 @@ OCaml 4.13.0
- #10376: Link runtime libraries correctly on msvc64 in -output-complete-obj
(David Allsopp, review by Gabriel Scherer)

- #xxx: Fix major GC work accounting (the GC was running too fast).
(Damien Doligez, report by Stephen Dolan, review by xxx)

OCaml 4.12.0 (24 February 2021)
-------------------------------

Expand Down
2 changes: 1 addition & 1 deletion runtime/major_gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ Caml_inline void mark_slice_darken(struct mark_stack* stk, value v, mlsize_t i,
if( Tag_hd(chd) < No_scan_tag ) {
mark_stack_push(stk, child, 0, work);
} else {
*work -= 1; /* Account for header */
*work -= Whsize_hd (chd);
}
}
}
Expand Down

0 comments on commit dfc9f19

Please sign in to comment.