BoehmGC port?

15 views
Skip to first unread message

Carlo Kok

unread,
Apr 14, 2022, 3:27:33 AM4/14/22
to discuss
Does anyone know of a port of BoehmGC for Fuchsia (to be used from a custom language, targetting fuchsia), or alternatively of a different GC that can be used?


Shai Barack

unread,
Apr 14, 2022, 11:36:30 AM4/14/22
to Carlo Kok, discuss
I'm not aware of anyone having ported or implemented a GC for C/C++ on Fuchsia.

On Thu, Apr 14, 2022, 12:27 AM Carlo Kok <carl...@gmail.com> wrote:
Does anyone know of a port of BoehmGC for Fuchsia (to be used from a custom language, targetting fuchsia), or alternatively of a different GC that can be used?


--
All posts must follow the Fuchsia Code of Conduct https://fuchsia.dev/fuchsia-src/CODE_OF_CONDUCT or may be removed.
---
You received this message because you are subscribed to the Google Groups "discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss+u...@fuchsia.dev.
To view this discussion on the web visit https://groups.google.com/a/fuchsia.dev/d/msgid/discuss/a42dc0bf-1b77-479b-9ced-fe42ae8e1323n%40fuchsia.dev.

Ian McKellar

unread,
Apr 14, 2022, 10:18:45 PM4/14/22
to Shai Barack, Carlo Kok, discuss
I mean technically we have Oilpan as part of our Chromium port, but that's quite a different beast than Boehm.

At a glance I don't see anything that should make porting the Boehm GC to Fuchsia particularly difficult: https://www.hboehm.info/gc/porting.html

Ian

Zac Bowling

unread,
Apr 14, 2022, 10:18:50 PM4/14/22
to Shai Barack, Carlo Kok, discuss
Boehm requires signals that work in a specific way. You might be able to port that on top of zx_task_suspend() and a few other zircon syscalls to trap. Boehm also needs an API to read the memory layout of the process at runtime (like /proc/self/maps). IIRC we have a way to do that (probably in our unwinder in some crash reporter). 

I believe you COULD port Boehm, but it wouldn't be a trivial amount of work. 

Zac Bowling


On Thu, Apr 14, 2022 at 8:36 AM 'Shai Barack' via discuss <dis...@fuchsia.dev> wrote:
Reply all
Reply to author
Forward
0 new messages