From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA07343 for caml-redistribution; Wed, 1 Sep 1999 10:01:18 +0200 (MET DST) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id WAA27812 for ; Tue, 31 Aug 1999 22:00:59 +0200 (MET DST) Received: from clio.sc.intel.com (clio.sc.intel.com [143.183.152.25]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id WAA02695 for ; Tue, 31 Aug 1999 22:00:56 +0200 (MET DST) Received: from mipos2.intel.com (mipos2.intel.com [143.183.48.42]) by clio.sc.intel.com (8.9.1a+p1/8.9.1/d: relay.m4,v 1.6 1998/11/24 22:10:56 iwep Exp iwep $) with ESMTP id NAA09865; Tue, 31 Aug 1999 13:00:37 -0700 (PDT) Received: from zws197.sc.intel.com (ctchou@zws197.sc.intel.com [143.183.45.141]) by mipos2.intel.com (8.9.1a/8.9.1) with ESMTP id NAA08212; Tue, 31 Aug 1999 13:00:36 -0700 (PDT) Received: (from ctchou@localhost) by zws197.sc.intel.com (8.9.1a/8.9.1) id QAA05934; Tue, 31 Aug 1999 16:00:34 -0400 (EDT) Date: Tue, 31 Aug 1999 16:00:34 -0400 (EDT) Message-Id: <199908312000.QAA05934@zws197.sc.intel.com> From: Ching-Tsun Chou To: dmcclain@azstarnet.com CC: caml-list@inria.fr In-reply-to: <000901bef310$b08c8ce0$210148bf@dylan> (dmcclain@azstarnet.com) Subject: Re: Memory management under OCAML Sender: weis I am trying to understand the behavior of the interactive OCAML system. If I repeatedly perform the following line: let x = Array.create 1000000 0.0;; then each subsequent execution should shadow the previous ones making them unreachable. Yet the GC never collects the old bindings, even after I manually perform Gc.full_major() or Gc.compact(). Why is this? Some time ago I observed the same thing and asked the same question. To see the answer, go to the archive of Caml mailing list and search for the thread "What exactly can be GC'ed?" - Ching Tsun ===================================================================== Ching-Tsun Chou E-mail: ctchou@mipos2.intel.com Intel Corporation Tel: (408) 765-5468 3600 Juliette Lane, SC12-401 Fax: (408) 653-7933 Santa Clara, CA 95052, U.S.A. Sec: (408) 653-8849 =====================================================================