+added garbage collection for referenced objects.

This commit is contained in:
Wang Renxin 2015-10-14 11:36:50 +08:00
parent bb78a37d20
commit d33b032b2b

View File

@ -46,6 +46,14 @@ extern "C" {
# define MB_ENABLE_COLLECTION_LIB # define MB_ENABLE_COLLECTION_LIB
#endif /* MB_ENABLE_COLLECTION_LIB */ #endif /* MB_ENABLE_COLLECTION_LIB */
#ifndef MB_ENABLE_GC
# define MB_ENABLE_GC
#endif /* MB_ENABLE_GC */
#ifndef MB_GC_GARBAGE_THRESHOLD
# define MB_GC_GARBAGE_THRESHOLD 16
#endif /* MB_GC_GARBAGE_THRESHOLD */
#ifndef MB_ENABLE_ALLOC_STAT #ifndef MB_ENABLE_ALLOC_STAT
# define MB_ENABLE_ALLOC_STAT # define MB_ENABLE_ALLOC_STAT
#endif /* MB_ENABLE_ALLOC_STAT */ #endif /* MB_ENABLE_ALLOC_STAT */