majjoha / sloth

A lazy, functional programming language.
https://github.com/majjoha/sloth
GNU General Public License v3.0
2 stars 0 forks source link

Finish the implementation of Mark-and-Sweep Garbage Collection for the G-machine #2

Closed engesgaard closed 8 years ago

engesgaard commented 9 years ago

Note: Changes related to this issue is located on the "gc_mark2" branch.

Sub-issues

engesgaard commented 8 years ago

Both sub-issues have been solved, and the "gc_mark2" branch has been merged into "master". The first sub-issue related to orphans has been solved as described, by only allocating blocks of at least size 2. The second sub-issue related to segmentation of the heap has been solved by fusing together adjacent free blocks on the heap when sweeping.