mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-18 01:30:27 +02:00
* gc-malloc.c, gc.h (scm_gc_malloc_prehistory): New function.
* gc-malloc.c (malloc_mutex): New mutex. (scm_gc_malloc_prehistory): Initialize it. (scm_realloc): Serialize call to realloc (scm_calloc): Same for calloc. Thanks to Wolfgang Jaehrling! (Now we have to make sure all calls to malloc/realloc are made through scm_malloc.) * init.c (scm_init_guile_1): Call scm_gc_malloc_prehistory.
This commit is contained in:
parent
3cdde9d667
commit
960c408c04
4 changed files with 14 additions and 4 deletions
|
@ -444,6 +444,7 @@ scm_init_guile_1 (SCM_STACKITEM *base)
|
|||
|
||||
scm_block_gc = 1;
|
||||
|
||||
scm_gc_malloc_prehistory ();
|
||||
scm_threads_prehistory ();
|
||||
scm_ports_prehistory ();
|
||||
scm_smob_prehistory ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue