]> git.eshelyaron.com Git - emacs.git/commitdiff
(system_process_attributes) [SYSTEM_MALLOC]: Don't call ret_lim_data.
authorEli Zaretskii <eliz@gnu.org>
Sat, 4 Apr 2009 09:43:21 +0000 (09:43 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sat, 4 Apr 2009 09:43:21 +0000 (09:43 +0000)
(Bug#2867)

src/ChangeLog
src/dosfns.c

index 2c3075a70445c82571150852d3f630b2cd12a94f..ad6463acf559e4b241a9faceab455e27fb035bfe 100644 (file)
@@ -1,3 +1,8 @@
+2009-04-04  Eli Zaretskii  <eliz@gnu.org>
+
+       * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
+       ret_lim_data.  (Bug#2867)
+
 2009-04-03  Chong Yidong  <cyd@stupidchicken.com>
 
        * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
index 12c260e1c6355a01de863f3c464d18bed7eb17d3..62594f1671ff2f4f2e0de4f0fc7be7c74c438eaf 100644 (file)
@@ -571,7 +571,9 @@ system_process_attributes (Lisp_Object pid)
       int i;
       Lisp_Object cmd_str, decoded_cmd, tem;
       double pmem;
+#ifndef SYSTEM_MALLOC
       extern unsigned long ret_lim_data ();
+#endif
 
       uid = getuid ();
       attrs = Fcons (Fcons (Qeuid, make_fixnum_or_float (uid)), attrs);
@@ -604,8 +606,12 @@ system_process_attributes (Lisp_Object pid)
                            make_fixnum_or_float ((unsigned long)sbrk(0)/1024)),
                     attrs);
       attrs = Fcons (Fcons (Qetime, tem), attrs);
+#ifndef SYSTEM_MALLOC
+      /* ret_lim_data is on vm-limit.c, which is not compiled in under
+        SYSTEM_MALLOC.  */
       pmem = (double)((unsigned long) sbrk (0)) / ret_lim_data () * 100.0;
       if (pmem > 100)
+#endif
        pmem = 100;
       attrs = Fcons (Fcons (Qpmem, make_float (pmem)), attrs);
       /* Pass 1: Count how much storage we need.  */