From: Hendrik Tews <H.Tews@cs.ru.nl>
To: "Neal Wang" <neal.wang@gmail.com>
Cc: "The Caml Trade" <caml-list@inria.fr>
Subject: Re: [Caml-list] Can GC be BLOCKed?
Date: Mon, 04 Dec 2006 10:37:48 +0100 [thread overview]
Message-ID: <wwuac24f1cj.fsf@tandem.cs.ru.nl> (raw)
In-Reply-To: <1965df800612011053x1c442d31if3ef14c5f87ba76d@mail.gmail.com> (Neal Wang's message of "Fri, 1 Dec 2006 10:53:08 -0800")
"Neal Wang" <neal.wang@gmail.com> writes:
The problem is not caused by real-time requirement.
I would also suggest to solve you problem by postponing the
write-backs using some queue either in ocaml or on the C side.
However:
IMHO, providing a way to disable GC will help a lot in variant
situations. The only side effect of misuse such a feature is out of
memory exception which does happen even GC is always enabled.
I find it also an interesting idea to be able to block the GC for
certain periods. However, it seems that exceptions are heap
allocated, so you would have to allocate the Out_of_memory
exception statically (not sure if that's possible).
Further, if GC is blocked and the heap is full you can do almost
nothing until the collection is completed. All functions that
catch and reraise exceptions like
try
...
with
| x -> release_the_lock(); raise x
would probably not work as expected with an Out_of_memory
exception.
Bye,
Hendrik
prev parent reply other threads:[~2006-12-04 9:37 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
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 [this message]
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=wwuac24f1cj.fsf@tandem.cs.ru.nl \
--to=h.tews@cs.ru.nl \
--cc=caml-list@inria.fr \
--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