caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Tom <tom.primozic@gmail.com>
To: "Neal Wang" <neal.wang@gmail.com>
Cc: "j h woodyatt" <jhw@conjury.org>, "The Caml Trade" <caml-list@inria.fr>
Subject: Re: [Caml-list] Can GC be BLOCKed?
Date: Fri, 1 Dec 2006 01:38:14 +0100	[thread overview]
Message-ID: <c1490a380611301638w55aca60co52d3d66318a901b3@mail.gmail.com> (raw)
In-Reply-To: <1965df800611301607g330f5517saeba25d40c3321ca@mail.gmail.com>

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

Hm... There is no way you could do that. If you do not know how much data
your function would allocate, you cannot allocate it in advance. While your
function is being executed, it might occur that the heap is full and that it
needs to be garbage collected before your function could allocate further
data. How do you think this would work if the GC would be disabled?

By the way, it is possible to have C functions that are not interrupted by
GC, but only when they allocate nothing - but whenever some new value is
made, or something is allocated, there might be a need for GC.

 - Tom

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

  reply	other threads:[~2006-12-01  0:38 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-30  0:33 Neal Wang
2006-11-30  3:07 ` [Caml-list] " James Woodyatt
2006-12-01  0:07   ` Neal Wang
2006-12-01  0:38     ` Tom [this message]
2006-12-01  9:19     ` Richard Jones
2006-12-01 13:39       ` Dmitry Bely
2006-12-01 23:28         ` Philippe Wang
2006-12-02 10:04           ` Dmitry Bely
2006-12-02 12:14             ` Philippe Wang
2006-12-02 11:19         ` Richard Jones
2006-12-01 18:53       ` Neal Wang
2006-12-01 19:13         ` Chris King
2006-12-04  9:37         ` Hendrik Tews

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c1490a380611301638w55aca60co52d3d66318a901b3@mail.gmail.com \
    --to=tom.primozic@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=jhw@conjury.org \
    --cc=neal.wang@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).