<?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/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"
  prev="2003/12/a2033ccc51a85fa08cd9c55584643029"
  next="2003/12/09f10707cb7d748374f53d21860a4769"
  prev-in-thread="2003/12/89f22e8743e7c03c963e920443aafb34"
  next-in-thread="2003/12/e8b6acc35d8fa6020be206659a0b8e6f"
  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>
Alain Frisch wrote:
&gt; I was proposing to have an intermediate code block (made of
&gt; CALL_DYN).

Ah yes, I see it now. I didn't really understand your proposal fully
in the beginning. And to be honest, I still am not sure of the actual
implementation.

I'll read it once more and probably ask some questions - I have yet
another idea which might be what you mean as well, or then again it
might not be - if you have the patience for me :-)

&gt; I have been considering this idea too, but I think it does'nt work:
&gt; sure, the GC won't free the code block, but it can still move it
&gt; without updating the code pointer in the closure. Maybe this can be
&gt; addressed by using a different GC tag to denote "movable" closures,
&gt; so that the GC knows that the code pointer has to be translated by
&gt; the same amount as the last slot (which is the pointer to the code
&gt; block).

You are obviously right. I didn't even consider the GC moving the
block. Well that's it for the cleanliness of that idea - if there
needs to be a new block type or touching the GD, it's not really
better than the other suggestions, except in a performance sense.

-- Naked

-------------------
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>

