From: Frederic Perriot <fperriot@gmail.com>
To: "Perry E. Metzger" <perry@piermont.com>,
Chet Murthy <murthy.chet@gmail.com>
Cc: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] a bad value detector
Date: Wed, 9 May 2018 10:39:57 +0200 [thread overview]
Message-ID: <CAFY7FBPzzZvzmMWu1OWv8FNGFbAZ=iyrb8oz5g166u49GPxG2A@mail.gmail.com> (raw)
In-Reply-To: <20180504164816.61724b3b@jabberwock.cb.piermont.com>
Perry E. Metzger answered:
> Once, I built a precise garbage collector for a language I'd
> implemented in C. It was a simple Cheney collector with two
> semispaces. I munmapped the unused semispace after each gc.
> [...]
I only now realize your very trick is applicable to Ocaml's generational GC too:
just alternate the young generation between two virtual address ranges.
Then well-behaved programs should incur no page faults.
I'll give it a try, thanks.
Chet Murthy said:
>If I remember correctly, a company once started with Boehm's conservative GC, and by doing things somewhat like you suggest, built a memory-leak-detector product.
Interesting.
thank you guys,
regards,
FP
next prev parent reply other threads:[~2018-05-09 8:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-02 16:19 Frederic Perriot
2018-05-04 20:48 ` Perry E. Metzger
2018-05-09 8:39 ` Frederic Perriot [this message]
2018-05-11 5:54 ` Stijn Devriendt
2018-05-12 10:54 ` Frederic Perriot
2018-05-05 3:26 ` Chet Murthy
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='CAFY7FBPzzZvzmMWu1OWv8FNGFbAZ=iyrb8oz5g166u49GPxG2A@mail.gmail.com' \
--to=fperriot@gmail.com \
--cc=caml-list@inria.fr \
--cc=murthy.chet@gmail.com \
--cc=perry@piermont.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