Mercurial > hg > xemacs-beta
comparison src/symbols.c @ 2994:ec5f23ea6d2e
[xemacs-hg @ 2005-10-14 01:21:57 by ben]
add gc percentage threshold to mc-alloc
config.h.in, alloc.c, dumper.c, emacs.c, lrecord.h, mc-alloc.c, mc-alloc.h, symbols.c: Rename MC_ALLOC_TYPE_STATS to ALLOC_TYPE_STATS, since
(with refactoring) this is not really specific to mc-alloc.
Generalize code to implement the GC % threshold for garbage
collecting. Rename `lrecord-stats' to `object-memory-usage-stats'
(defined when not mc-alloc, too). Rename `memory-usage' to
`total-memory-usage' and add `object-memory-usage'. Bump
gc_cons_threshold to 2,000,000 (suggestion by Stephen Turnbull).
Avoid use of C++ reserved word `catch'.
Change address for crash reporting to xemacs-beta@xemacs.org from
crashes@xemacs.org.
new -> new_ in emacs.c.
Turn on _CRT_SECURE_NO_DEPRECATE under Visual C++ to avoid tons of
warnings in VC8.
author | ben |
---|---|
date | Fri, 14 Oct 2005 01:22:01 +0000 |
parents | 288869ac83b5 |
children | 1e7cc382eb16 |
comparison
equal
deleted
inserted
replaced
2993:49316578f12d | 2994:ec5f23ea6d2e |
---|---|
3329 MARK_LRECORD_AS_NOT_FREE (tem); | 3329 MARK_LRECORD_AS_NOT_FREE (tem); |
3330 tem->header.type = lrecord_type_symbol_value_forward; | 3330 tem->header.type = lrecord_type_symbol_value_forward; |
3331 mcpro (wrap_pointer_1 (tem)); | 3331 mcpro (wrap_pointer_1 (tem)); |
3332 tem->value = 0; | 3332 tem->value = 0; |
3333 tem->type = SYMVAL_UNBOUND_MARKER; | 3333 tem->type = SYMVAL_UNBOUND_MARKER; |
3334 #ifdef MC_ALLOC_TYPE_STATS | 3334 #ifdef ALLOC_TYPE_STATS |
3335 inc_lrecord_stats (sizeof (struct symbol_value_magic), | 3335 inc_lrecord_stats (sizeof (struct symbol_value_magic), |
3336 (const struct lrecord_header *) tem); | 3336 (const struct lrecord_header *) tem); |
3337 #endif /* not MC_ALLOC_TYPE_STATS */ | 3337 #endif /* ALLOC_TYPE_STATS */ |
3338 #else /* not MC_ALLOC */ | 3338 #else /* not MC_ALLOC */ |
3339 const struct symbol_value_magic *tem = &guts_of_unbound_marker; | 3339 const struct symbol_value_magic *tem = &guts_of_unbound_marker; |
3340 #endif /* not MC_ALLOC */ | 3340 #endif /* not MC_ALLOC */ |
3341 | 3341 |
3342 Qunbound = wrap_symbol_value_magic (tem); | 3342 Qunbound = wrap_symbol_value_magic (tem); |