• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

Makefile.inH A D24-Oct-20211.1 KiB5533

READMEH A D24-Oct-2021878 2216

autostat.incH A D24-Oct-20216.6 KiB244217

checkregH A D24-Oct-20215.2 KiB180156

collect.incH A D24-Oct-202110.5 KiB412362

gc.hH A D24-Oct-202138 41

sgc.cH A D24-Oct-2021127.1 KiB5,2524,095

sgc.hH A D24-Oct-20214.5 KiB12190

sgcdiffH A D24-Oct-20216.3 KiB248216

test.cH A D24-Oct-20212.2 KiB12899

README

1SenoraGC is a relatively portable conservative GC for a slightly
2cooperative environment. Its API is based on the Boehm GC.
3
4The collector was originally intended for debugging and memory
5tracing, but it can also act as a reasonbaly efficient,
6general-purpose, conservative collector.
7
8Usage:
9
10The stack base must be manually identified with GC_set_stack_base();
11no garbage collection will occur before this function is called.
12
13All non-stack/register roots (i.e., global variables) must be
14registered with GC_add_roots(). For certain platforms, this is
15actually done automatically for static variables, but it can't be done
16portably in general. (See AUTO_STATIC_ROOTS_IF_POSSIBLE in the flags
17section.)
18
19GC space is allocated using mmap() where available, malloc()
20otherwise. The GC can define malloc() and free() itself if
21platform-specific allocation routines are supported.
22