3 ms·
https://www.hboehm.info/gc/ https://www.hboehm.info/gc/
by bobowzki 3y ago
https://www.hboehm.info/gc/ https://www.hboehm.info/gc/
- tmtvl 3y agoThat was my first reaction as well, I haven't really used it, but it's an interesting tool.
- convolvatron 3y agoI did this once - a compacting collector for C. it was a really trivial mark/sweep - and as I recall you had to write functions for each type to perform the object graph traversal. for artificial memory-intensive workloads it was around 8x the performance of boehm.
- antiviral 3y agoIs this anything you'd be willing to share publicly? How did you determine the scope of a chunk of memory? I believe you need this to run any of the GC algorithms. I checked the hboehm documentation (1) and in the section on "Locating roots" it says "you don't want to know": -Runtime stack(s): you don't really want to know.Need consistent caller-save reg. snapshot -Static data segments: you don't want to know that either. -Very platform dependent But you only have to do it once per platform. (1) https://www.hboehm.info/gc/04tutorial.pdf https://www.hboehm.info/gc/04tutorial.pdf
- convolvatron 3y agoyeah, of course. its old crap that I'd have to find if I can. I will look. roots in boehm means globals and the stack. this little thing had explicitly declared roots. edit: I found it, mail me at yuri@tenuki.org. be prepared to be unimpressed.