Subject: bug#2072: "Emergency (alloc): Warning: past 85% of memory limit" on NetBSD/mips

From: Chong Yidong <[email-masked]>
Date: Thu, 28 Jan 2010 12:37:13 -0500

Dan Nicolaescu <dann <at> ics.uci.edu> wrote:

> Izumi Tsutsui <tsutsui <at> ceres.dti.ne.jp> wrote:
>
> > Emacs-23.1 on NetBSD/cobalt (mipsel) 5.0.1 also gets the following
> > warning message as well as bug#2685 on Debian lenny.
> >
> > >> Emergency (alloc): Warning: past 85% of memory limit
> >
> > The following patch (and configure rev 1.326 on HEAD) fixes it:
>
> mips.h is only used on NetBSD and GNU/Linux, so, IMO, the right thing to
> do here is just remove #define DATA_START in that file.

Indeed, thanks.  I've checked in the suggested fix.  Thanks.

> > NetBSD/alpha has the same problem as mentioned in bug#2072, and
> > the following patch for emacs-23.1 works fine on NetBSD/alpha 5.0:
>
> The solution should be the same in this file too.

FreeBSD and OpenBSD also use this, so I'm not sure this is right.  For
now, let's just use the __NetBSD__ conditional as originally suggested.