Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* [Caml-list] Scanning objects outside the OCaml heap
@ 2015-07-06 22:21 Michael Hicks
  2015-07-07  0:32 ` Pierre Chambart
  2015-07-13  3:20 ` Oleg
  0 siblings, 2 replies; 3+ messages in thread
From: Michael Hicks @ 2015-07-06 22:21 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 883 bytes --]

From what I have found on-line (Chap 19 of the OCaml manual, and Chap 20 of
Real-World OCaml), it seems that memory outside of the OCaml heap, but
pointed to by it, is not scanned by the GC.

Does anyone know: Is there any way to make outside memory scannable by the
GC?

The reason I ask:

I'm interested in implementing a custom memory management strategy that I
can prove is safe in a language I will compile to OCaml. I'm thinking I'd
like to allocate freeable memory outside the OCaml heap, but as OCaml
values. Since these values can point to OCaml heap-resident data, they need
to be scanned. But I don't want to have to explicitly register/deregister
them as roots to the GC, or track all mutations to the values, if I can
help it. Rather, having a single "persistent root" to my memory area, for
purposes of scanning, would be ideal.

Thanks in advance for any help,

-Mike

[-- Attachment #2: Type: text/html, Size: 1083 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-13  3:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-06 22:21 [Caml-list] Scanning objects outside the OCaml heap Michael Hicks
2015-07-07  0:32 ` Pierre Chambart
2015-07-13  3:20 ` Oleg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox