Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] troubleshooting problem related to garbage collection
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: james woodyatt <jhw@w...>
Subject: [Caml-list] troubleshooting problem related to garbage collection

Last night I spent a lot of time trying to figure out why an assertion 
was failing in my code when I use it with large data sets.  I'm still 

This morning, I inserted the following at the beginning of my main 

> Gc.set {
>     (Gc.get ()) with
>     Gc.major_heap_increment = 64000
> }

This made the problem go away.

What's even more strange is that there are multiple failure modes to 
choose from depending on which number I pick for the 
major_heap_increment value.  The number I am using here just happens to 
be the one that makes the code work.

Can anyone advise me on how to find the bug here?

j h woodyatt <>
"...the antidote to misinformation is more information, not less."
                                                      --vinton cerf

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: