Merge branch 'gc-handle-fork' into 'develop'

Enable handle fork by GC

Closes #718

See merge request embeddable-common-lisp/ecl!303
This commit is contained in:
Daniel Kochmański 2023-09-25 05:06:56 +00:00 committed by Marius Gerbershagen
commit 798e3469e3

View file

@ -760,10 +760,12 @@ init_alloc(void)
* the begining or to the first byte.
* 3) Out of the incremental garbage collector, we only use the
* generational component.
* 4) GC should handle fork() which is used to run subprocess.
*/
GC_set_no_dls(1);
GC_set_all_interior_pointers(0);
GC_set_time_limit(GC_TIME_UNLIMITED);
GC_set_handle_fork(1);
GC_init();
#ifdef ECL_THREADS
# if GC_VERSION_MAJOR > 7 || GC_VERSION_MINOR > 1