 threads.
<p>

   Anything reachable from the closure of finalisation functions
   is considered reachable, so the following code will not work
   as expected:<ul>
<li><code class="code"> let v = ... in Gc.finalise (fun x -&gt; ... v ...) v </code></li>
</ul>

   Instead you should make sure that <code class="code">v</code> is not in the closure of
   the finalisation function by writing:<ul>
<li><code class="code"> let f = fun x -&gt; ... ;; let v = ... in Gc.finalise f v </code></li>
</ul>

   The <code c