mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-27 07:37:33 +00:00
* alloc.c (Fgarbage_collect): Indent as per usual Emacs style.
This commit is contained in:
parent
8519232d51
commit
387d4d92bc
@ -1,3 +1,7 @@
|
||||
2012-07-29 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* alloc.c (Fgarbage_collect): Indent as per usual Emacs style.
|
||||
|
||||
2012-07-29 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* makefile.w32-in (LISP_H): Add $(NT_INC)/stdalign.h.
|
||||
|
14
src/alloc.c
14
src/alloc.c
@ -5706,9 +5706,9 @@ See Info node `(elisp)Garbage Collection'. */)
|
||||
#if GC_MARK_STACK == GC_USE_GCPROS_CHECK_ZOMBIES
|
||||
{
|
||||
/* Compute average percentage of zombies. */
|
||||
double nlive =
|
||||
total_conses + total_symbols + total_markers + total_strings
|
||||
+ total_vectors + total_floats + total_intervals + total_buffers;
|
||||
double nlive =
|
||||
(total_conses + total_symbols + total_markers + total_strings
|
||||
+ total_vectors + total_floats + total_intervals + total_buffers);
|
||||
|
||||
avg_live = (avg_live * ngcs + nlive) / (ngcs + 1);
|
||||
max_live = max (nlive, max_live);
|
||||
@ -5727,9 +5727,11 @@ See Info node `(elisp)Garbage Collection'. */)
|
||||
|
||||
/* Accumulate statistics. */
|
||||
if (FLOATP (Vgc_elapsed))
|
||||
Vgc_elapsed = make_float
|
||||
(XFLOAT_DATA (Vgc_elapsed) + EMACS_TIME_TO_DOUBLE
|
||||
(sub_emacs_time (current_emacs_time (), start)));
|
||||
{
|
||||
EMACS_TIME since_start = sub_emacs_time (current_emacs_time (), start);
|
||||
Vgc_elapsed = make_float (XFLOAT_DATA (Vgc_elapsed)
|
||||
+ EMACS_TIME_TO_DOUBLE (since_start));
|
||||
}
|
||||
|
||||
gcs_done++;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user