mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 14:00:21 +02:00
Set $GC_MARKERS to 1 when libgc 7.4.0 is used.
* libguile/gc.c (scm_storage_prehistory) [GC_VERSION == 7.4.0]: Add 'setenv' call.
This commit is contained in:
parent
d38ca16e2c
commit
3f69e638be
1 changed files with 8 additions and 0 deletions
|
@ -602,6 +602,14 @@ scm_storage_prehistory ()
|
|||
GC_set_free_space_divisor (free_space_divisor);
|
||||
GC_set_finalize_on_demand (1);
|
||||
|
||||
#if (GC_VERSION_MAJOR == 7 && GC_VERSION_MINOR == 4 \
|
||||
&& GC_ALPHA_VERSION == 0)
|
||||
/* BDW-GC 7.4.0 has a bug making it loop indefinitely when using more
|
||||
than one marker thread: <https://github.com/ivmai/bdwgc/pull/30>.
|
||||
Work around it by asking for one marker thread. */
|
||||
setenv ("GC_MARKERS", "1", 1);
|
||||
#endif
|
||||
|
||||
GC_INIT ();
|
||||
|
||||
GC_expand_hp (DEFAULT_INITIAL_HEAP_SIZE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue