delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/27/17:24:15

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: Robert Mecklenburg <mecklen AT cimsoft DOT com>
MIME-Version: 1.0
Message-ID: <16003.31199.26941.271222@gargle.gargle.HOWL>
Date: Thu, 27 Mar 2003 15:23:27 -0700
To: Cygwin Users List <cygwin AT cygwin DOT com>
Subject: Re: trying to compile emacs under cygwin
In-Reply-To: <3E81DEFC.8080603@hekimian.com>
References: <3E81DEFC DOT 8080603 AT hekimian DOT com>

RM> fatal ("SHEAP_ADJUSTMENT needs to be modified to reduce memory waste!");

JB> The proper thing to do is adjust SHEAP_ADJUSTMENT like the message says.
JB> I think the SLOP parameter is a comparison fuzz setting.

Okay, I'm forced to admit how lame I am, but I can't figure out how to
reset this value.  The error messages says:

Static heap usage: 2129280 of 10648960, slop is 65536 -- 8320k wasted -- reset to 2194816k
emacs: SHEAP_ADJUSTMENT needs to be modified to reduce memory waste!

So I edit emacs-21.2/src/sheap.c to:

#ifdef HAVE_X_WINDOWS
#define SHEAP_ADJUSTMENT 2194816 /* XEmacs does this dynamically */
#else
#define SHEAP_ADJUSTMENT 2194816 /* XEmacs does this dynamically */
#endif

But it has no effect on the error/build.  I then notice
emacs-21.2-build/src/sheap-adjust.h which is generated by sheap.c:

/*	Do not edit this file!
	Automatically generated by XEmacs */
# define SHEAP_ADJUSTMENT (-8454144)

Well, changing this doesn't do any good, it just gets regenerated (as
the comment says!).  Furthermore, a tags search fails to find any file
which includes this header.  Then I notice that emacs-21.2.install
actually writes sheap.c, so I edit the script to change the -620000
to:

+#ifdef HAVE_X_WINDOWS
+#define SHEAP_ADJUSTMENT 2194816 /* XEmacs does this dynamically */
+#else
+#define SHEAP_ADJUSTMENT 2194816 /* XEmacs does this dynamically */
+#endif

Still no joy.

I'll perform the penance of your choice if you tell me how to set
SHEAP_ADJUSTMENT and the appropriate value!

Thanks,
-- 
Robert


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019