Skip to content

Commit

Permalink
MPR#7815: major GC crash with first-fit policy (#1896)
Browse files Browse the repository at this point in the history
A fixed-size cache was overflowing.  This is the simple fix.
  • Loading branch information
damiendoligez authored and xavierleroy committed Jul 19, 2018
1 parent 3e265f9 commit 1bea41f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Changes
@@ -1,6 +1,11 @@
OCaml 4.07 maintenance branch
-----------------------------

### Bug fixes:

- MPR#7815, GPR#1896: major GC crash with first-fit policy
(Stephen Dolan and Damien Doligez, report by Joris Giovannangeli)

- MPR#7820, GPR#1897: Fix Array.of_seq. This function used to apply a circular
permutation of one cell to the right on the sequence.
(Thierry Martinez, review by Nicolás Ojeda Bär)
Expand Down
2 changes: 1 addition & 1 deletion byterun/freelist.c
Expand Up @@ -338,7 +338,7 @@ header_t *caml_fl_allocate (mlsize_t wo_sz)
mlsize_t oldsz = sz;

prev = flp[i];
while (prev != flp[i+1]){
while (prev != flp[i+1] && j < FLP_MAX - i){
cur = Next (prev);
sz = Wosize_bp (cur);
if (sz > prevsz){
Expand Down

0 comments on commit 1bea41f

Please sign in to comment.