* gc-malloc.c, gc.h (scm_gc_malloc_prehistory): New function.
authorMikael Djurfeldt <djurfeldt@nada.kth.se>
Tue, 10 Dec 2002 20:25:26 +0000 (20:25 +0000)
committerMikael Djurfeldt <djurfeldt@nada.kth.se>
Tue, 10 Dec 2002 20:25:26 +0000 (20:25 +0000)
commit960c408c04470b0680e250b44e5273987e1aa66d
tree37dd7fa9f6fb2f906fbced731027918dcae38c8b
parent3cdde9d66789df427a36da3627d4f7f8731587fc
* 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.
libguile/ChangeLog
libguile/gc-malloc.c
libguile/gc.h
libguile/init.c