emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r101153: Remove unused variables mall


From: Dan Nicolaescu
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r101153: Remove unused variables malloc_sbrk_used and malloc_sbrk_unused.
Date: Fri, 20 Aug 2010 16:02:11 -0700
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 101153
committer: Dan Nicolaescu <address@hidden>
branch nick: trunk
timestamp: Fri 2010-08-20 16:02:11 -0700
message:
  Remove unused variables malloc_sbrk_used and malloc_sbrk_unused.
  * src/alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
  write only.
  (init_alloc_once): Remove writes to malloc_sbrk_unused, and
  malloc_sbrk_used, nothing uses them.
modified:
  src/ChangeLog
  src/alloc.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2010-08-20 22:52:10 +0000
+++ b/src/ChangeLog     2010-08-20 23:02:11 +0000
@@ -1,5 +1,10 @@
 2010-08-20  Dan Nicolaescu  <address@hidden>
 
+       * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
+       write only.
+       (init_alloc_once): Remove writes to malloc_sbrk_unused, and
+       malloc_sbrk_used, nothing uses them.
+
        * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
        defined, unconditionally defined in lisp.h.
 

=== modified file 'src/alloc.c'
--- a/src/alloc.c       2010-08-07 01:10:12 +0000
+++ b/src/alloc.c       2010-08-20 23:02:11 +0000
@@ -214,16 +214,6 @@
 
 int garbage_collection_messages;
 
-#ifndef VIRT_ADDR_VARIES
-extern
-#endif /* VIRT_ADDR_VARIES */
-int malloc_sbrk_used;
-
-#ifndef VIRT_ADDR_VARIES
-extern
-#endif /* VIRT_ADDR_VARIES */
-int malloc_sbrk_unused;
-
 /* Number of live and free conses etc.  */
 
 static int total_conses, total_markers, total_symbols, total_vector_size;
@@ -6178,11 +6168,6 @@
   consing_since_gc = 0;
   gc_cons_threshold = 100000 * sizeof (Lisp_Object);
   gc_relative_threshold = 0;
-
-#ifdef VIRT_ADDR_VARIES
-  malloc_sbrk_unused = 1<<22;  /* A large number */
-  malloc_sbrk_used = 100000;   /* as reasonable as any number */
-#endif /* VIRT_ADDR_VARIES */
 }
 
 void


reply via email to

[Prev in Thread] Current Thread [Next in Thread]