aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2012-07-29 09:00:35 -0700
committerPaul Eggert2012-07-29 09:00:35 -0700
commit387d4d92bca5cf7f0eb14c2b917773dde7b06041 (patch)
tree28fa15f1479d9e0031c8e3e14cd79a7e4cea8ca6 /src
parent8519232d51327515d031273376410441fc5d0280 (diff)
downloademacs-387d4d92bca5cf7f0eb14c2b917773dde7b06041.tar.gz
emacs-387d4d92bca5cf7f0eb14c2b917773dde7b06041.zip
* alloc.c (Fgarbage_collect): Indent as per usual Emacs style.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/alloc.c14
2 files changed, 12 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 8f9b7cc8084..fa1877f91c2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12012-07-29 Paul Eggert <eggert@cs.ucla.edu>
2
3 * alloc.c (Fgarbage_collect): Indent as per usual Emacs style.
4
12012-07-29 Eli Zaretskii <eliz@gnu.org> 52012-07-29 Eli Zaretskii <eliz@gnu.org>
2 6
3 * makefile.w32-in (LISP_H): Add $(NT_INC)/stdalign.h. 7 * makefile.w32-in (LISP_H): Add $(NT_INC)/stdalign.h.
diff --git a/src/alloc.c b/src/alloc.c
index 625acad991c..7680b3a2d84 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -5706,9 +5706,9 @@ See Info node `(elisp)Garbage Collection'. */)
5706#if GC_MARK_STACK == GC_USE_GCPROS_CHECK_ZOMBIES 5706#if GC_MARK_STACK == GC_USE_GCPROS_CHECK_ZOMBIES
5707 { 5707 {
5708 /* Compute average percentage of zombies. */ 5708 /* Compute average percentage of zombies. */
5709 double nlive = 5709 double nlive =
5710 total_conses + total_symbols + total_markers + total_strings 5710 (total_conses + total_symbols + total_markers + total_strings
5711 + total_vectors + total_floats + total_intervals + total_buffers; 5711 + total_vectors + total_floats + total_intervals + total_buffers);
5712 5712
5713 avg_live = (avg_live * ngcs + nlive) / (ngcs + 1); 5713 avg_live = (avg_live * ngcs + nlive) / (ngcs + 1);
5714 max_live = max (nlive, max_live); 5714 max_live = max (nlive, max_live);
@@ -5727,9 +5727,11 @@ See Info node `(elisp)Garbage Collection'. */)
5727 5727
5728 /* Accumulate statistics. */ 5728 /* Accumulate statistics. */
5729 if (FLOATP (Vgc_elapsed)) 5729 if (FLOATP (Vgc_elapsed))
5730 Vgc_elapsed = make_float 5730 {
5731 (XFLOAT_DATA (Vgc_elapsed) + EMACS_TIME_TO_DOUBLE 5731 EMACS_TIME since_start = sub_emacs_time (current_emacs_time (), start);
5732 (sub_emacs_time (current_emacs_time (), start))); 5732 Vgc_elapsed = make_float (XFLOAT_DATA (Vgc_elapsed)
5733 + EMACS_TIME_TO_DOUBLE (since_start));
5734 }
5733 5735
5734 gcs_done++; 5736 gcs_done++;
5735 5737