<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/12/294e6e26a75ec5a94aec065cd022d938"
  from="skaller &lt;skaller@o...&gt;"
  author="skaller"
  date="2003-12-13T03:05:14"
  subject="Re: [Caml-list] Freeing dynamically loaded code"
  prev="2003/12/c64b2acb17cf13e4de25dffc4adfb479"
  next="2003/12/b27fe723d723ccd52a027df72e683a76"
  prev-in-thread="2003/12/f6e4f3915780cad48789ef64a0624577"
  next-in-thread="2003/12/be509fa3a919a5e8efb6a28c92bb384e"
  prev-thread="2003/12/d1e1de7970b7af2882a64e70200b90ab"
  next-thread="2003/12/68276101f2bc192b44f47bce0bf1c103"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Freeing dynamically loaded code">
<msg 
  url="2003/12/c8b08257908c25043521e0a3fe5eaa77"
  from="Nuutti Kotivuori &lt;naked+caml@n...&gt;"
  author="Nuutti Kotivuori"
  date="2003-12-12T19:04:32"
  subject="[Caml-list] Freeing dynamically loaded code">
<msg 
  url="2003/12/0c7decba295f699bda078d6318fb9445"
  from="Alain.Frisch@e..."
  author="Alain.Frisch@e..."
  date="2003-12-12T19:36:48"
  subject="Re: [Caml-list] Freeing dynamically loaded code">
<msg 
  url="2003/12/93987d0010b1b77d46ffdd8b42e9ddb6"
  from="Nuutti Kotivuori &lt;naked+caml@n...&gt;"
  author="Nuutti Kotivuori"
  date="2003-12-12T20:05:51"
  subject="Re: [Caml-list] Freeing dynamically loaded code">
<msg 
  url="2003/12/0b0cbd59b0fdc2fb5469101f41b02c0d"
  from="Alain.Frisch@e..."
  author="Alain.Frisch@e..."
  date="2003-12-12T21:26:50"
  subject="Re: [Caml-list] Freeing dynamically loaded code">
<msg 
  url="2003/12/ccc55211ed05144411fb273907604dfc"
  from="Nuutti Kotivuori &lt;naked+caml@n...&gt;"
  author="Nuutti Kotivuori"
  date="2003-12-12T21:55:00"
  subject="Re: [Caml-list] Freeing dynamically loaded code">
<msg 
  url="2003/12/de2a57cea59abdba26c046de1d0a57d0"
  from="Nuutti Kotivuori &lt;naked+caml@n...&gt;"
  author="Nuutti Kotivuori"
  date="2003-12-13T07:25:41"
  subject="Re: [Caml-list] Freeing dynamically loaded code">
<msg 
  url="2003/12/89f22e8743e7c03c963e920443aafb34"
  from="Alain.Frisch@e..."
  author="Alain.Frisch@e..."
  date="2003-12-13T08:15:58"
  subject="Re: [Caml-list] Freeing dynamically loaded code">
<msg 
  url="2003/12/17b689cbb8f6dc1d21d31abd0ae53371"
  from="Nuutti Kotivuori &lt;naked+caml@n...&gt;"
  author="Nuutti Kotivuori"
  date="2003-12-13T20:57:35"
  subject="Re: [Caml-list] Freeing dynamically loaded code">
</msg>
<msg 
  url="2003/12/e8b6acc35d8fa6020be206659a0b8e6f"
  from="Jacques Garrigue &lt;garrigue@k...&gt;"
  author="Jacques Garrigue"
  date="2003-12-17T07:17:47"
  subject="Re: [Caml-list] Freeing dynamically loaded code">
<msg 
  url="2003/12/f6e4f3915780cad48789ef64a0624577"
  from="Nuutti Kotivuori &lt;naked+caml@n...&gt;"
  author="Nuutti Kotivuori"
  date="2003-12-17T23:48:37"
  subject="Re: [Caml-list] Freeing dynamically loaded code">
</msg>
</msg>
</msg>
</msg>
</msg>
<msg 
  url="2003/12/294e6e26a75ec5a94aec065cd022d938"
  from="skaller &lt;skaller@o...&gt;"
  author="skaller"
  date="2003-12-13T03:05:14"
  subject="Re: [Caml-list] Freeing dynamically loaded code">
<msg 
  url="2003/12/be509fa3a919a5e8efb6a28c92bb384e"
  from="Nuutti Kotivuori &lt;naked+caml@n...&gt;"
  author="Nuutti Kotivuori"
  date="2003-12-13T06:50:24"
  subject="Re: [Caml-list] Freeing dynamically loaded code">
</msg>
</msg>
<msg 
  url="2003/12/2d9430335faaca17eba81d2c109937ca"
  from="Nuutti Kotivuori &lt;naked+caml@n...&gt;"
  author="Nuutti Kotivuori"
  date="2003-12-15T03:11:26"
  subject="Re: [Caml-list] Freeing dynamically loaded code">
<msg 
  url="2003/12/ea2a721b6ed22c6404d67bc1566cc56e"
  from="Nuutti Kotivuori &lt;naked+caml@n...&gt;"
  author="Nuutti Kotivuori"
  date="2003-12-17T23:17:03"
  subject="Re: [Caml-list] Freeing dynamically loaded code">
</msg>
</msg>
</msg>
</msg>
</msg>
<msg 
  url="2003/12/d48b5541e82f7a6160b744399b9e7b12"
  from="Basile Starynkevitch &lt;basile.starynkevitch@i...&gt;"
  author="Basile Starynkevitch"
  date="2003-12-15T09:35:21"
  subject="Re: [Caml-list] Freeing dynamically loaded code">
<msg 
  url="2003/12/d1b02bef80190b6a892c1eb4d2c74bff"
  from="Nuutti Kotivuori &lt;naked+caml@n...&gt;"
  author="Nuutti Kotivuori"
  date="2003-12-15T11:34:52"
  subject="Re: [Caml-list] Freeing dynamically loaded code">
</msg>
</msg>
</msg>
</thread>

<contents>
On Sat, 2003-12-13 at 08:26, Alain.Frisch@ens.fr wrote:
&gt; On Fri, 12 Dec 2003, Nuutti Kotivuori wrote:
&gt; 
&gt; &gt; Well, like Xavier Leroy said at the end of the mail - *he* probably
&gt; &gt; isn't doing it. That doesn't mean there wouldn't be someone else crazy
&gt; &gt; enough to try :-)
&gt; &gt;
&gt; &gt; And atleast I'm not dropping the investigation just yet.
&gt; 
&gt; Thinking again about the technical challenge (put the dynlink'ed code
&gt; under GC control), I think the following approach is worth a try.
&gt; 
&gt; The question is how to let the GC know that the code block cannot be freed
&gt; as long as there is some accessible closure pointing into this block.

That is not enough. It is not necessary for some code to be
active in order that it may later *become* active as
a result of a subroutine call or jump. It would be necessary
to find all code addresses and which blocks they point to,
and build a dependency graph, and add the roots of that graph
to the gc memory graph as well.

Otherwise, after you say

	#load xxxx

the collector would immediately free it :-)


-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners

</contents>

</message>

