1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-27 21:40:34 +02:00

Add conservative stack capture

This isn't really wired up yet anywhere, but add a precursor to
conservative stack scanning.
This commit is contained in:
Andy Wingo 2022-09-16 13:40:55 +02:00
parent a5b1a66d21
commit d2bde8319f
10 changed files with 200 additions and 58 deletions

View file

@ -136,7 +136,8 @@ int main(int argc, char *argv[]) {
{ GC_OPTION_PARALLELISM, parallelism } };
struct gc_heap *heap;
struct gc_mutator *mut;
if (!gc_init(sizeof options / sizeof options[0], options, &heap, &mut)) {
if (!gc_init(sizeof options / sizeof options[0], options, NULL, &heap,
&mut)) {
fprintf(stderr, "Failed to initialize GC with heap size %zu bytes\n",
heap_size);
return 1;