Enable 'Force GC at every GC_malloc' debug-related functionality
authorIvan Maidanski <ivmai@mail.ru>
Tue, 11 Sep 2012 19:03:55 +0000 (23:03 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 11 Sep 2012 19:03:55 +0000 (23:03 +0400)
commit9dbe549fded38f9a456004831a9eced840a6ce36
tree08e2c078a9257058529b6a6d07a3304481a715d6
parent8102d42dd2e5b398e1085d5e3a90fdbee5ed6ed1
Enable 'Force GC at every GC_malloc' debug-related functionality

* doc/README.environment (GC_COLLECT_AT_MALLOC): Document.
* doc/README.macros (GC_COLLECT_AT_MALLOC): Likewise.
* fnlz_mlc.c (GC_core_finalized_malloc): Insert
GC_DBG_COLLECT_AT_MALLOC invocation (before LOCK).
* gcj_mlc.c (GC_core_gcj_malloc, GC_gcj_malloc_ignore_off_page):
Likewise.
* malloc.c (GC_generic_malloc, GC_malloc_atomic, GC_malloc,
GC_malloc_uncollectable): Likewise.
* mallocx.c (GC_generic_malloc_ignore_off_page,
GC_generic_malloc_many, GC_malloc_atomic_uncollectable): Likewise.
* typd_mlc.c (GC_malloc_explicitly_typed,
GC_malloc_explicitly_typed_ignore_off_page): Likewise.
* include/private/gc_priv.h (GC_COLLECT_AT_MALLOC): Recognize new
macro.
(GC_dbg_collect_at_malloc_min_lb): New global variable declaration
(only if GC_COLLECT_AT_MALLOC defined).
(GC_DBG_COLLECT_AT_MALLOC): Define new macro (invoking GC_gcollect).
* malloc.c (GC_dbg_collect_at_malloc_min_lb): New global variable
(only if GC_COLLECT_AT_MALLOC defined).
* misc.c (GC_init): Test "GC_COLLECT_AT_MALLOC" environment variable
and alter default GC_dbg_collect_at_malloc_min_lb value (only if
GC_COLLECT_AT_MALLOC macro defined).
doc/README.environment
doc/README.macros
fnlz_mlc.c
gcj_mlc.c
include/private/gc_priv.h
malloc.c
mallocx.c
misc.c
typd_mlc.c