Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 is currently offline  pber
Messages: 6
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
Previous Topic: Auto-Resize
Next Topic: Disable tab and callback
Goto Forum:
  


Current Time: Tue Jan 26 22:34:23 CET 2021

Total time taken to generate the page: 0.00874 seconds