Home » Community » Newbie corner » How to walk the heap? (...to mark and sweep)
How to walk the heap? [message #48666] |
Mon, 14 August 2017 16:22 |
pber
Messages: 8 Registered: February 2011 Location: Italy
|
Promising Member |
|
|
I have implemented a mark/sweep gc for my parser system.
The problem was that the parser can allocate nodes
and then discard them. So, instead of tracking and free
unused nodes, I simply ignore them, letting the gc do
the rest, later. It works, but my implementation is quite naive.
Now: I know UPP has its own heap, and I`m pondering
about the possibility to drop my implementation.
To do that I would need to walk through heap allocated
blocks, recongnize ast`s nodes, mark them and so on...
The problem is that I simply can not find the entry-point
to do this (...if any).
thanks
Paolo
|
|
|
Goto Forum:
Current Time: Tue Apr 29 01:47:41 CEST 2025
Total time taken to generate the page: 0.00883 seconds
|