Article View: gnu.emacs.bug
Article #1701>16meg looses
From: Tim Shepard
Date: Sat, 20 May 1989 15:49
Date: Sat, 20 May 1989 15:49
23 lines
1296 bytes
1296 bytes
I'm using emacs on a machine which has 32meg of physical memory and over 200 megabytes of swapping space. I've noticed that when an emacs gets large (because I like using things like M-x tags-search on LARGE programs), instead of giving me warnings about running out of memory, it eventually just wedges or gets very confused. I've read a little of alloc.c, malloc.c, and lisp.h and reproduced the problem under gdb and it looks to me like emacs is loosing because since VALBITS is 24, emacs is unable to hold a pointer to a lisp object to anything outside of the low 16 megabytes of memory. I cannot find any check for this in malloc.c or alloc.c . Maybe in alloc.c a check should be placed after the calls to malloc to make sure that (val + size) < (1<<VALBITS) or something like that. And/Or could you please maybe squeeze VALBITS up to 25 in some later release of emacs? -Tim
Technical Details
Message-ID:
<8905201549.AA21581@PTT.LCS.MIT.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ALLSPICE.LCS.MIT.EDU!shepShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ALLSPICE.LCS.MIT.EDU!shep From: shep@ALLSPICE.LCS.MIT.EDU (Tim Shepard) Newsgroups: gnu.emacs.bug Subject: >16meg looses Message-ID: <8905201549.AA21581@PTT.LCS.MIT.EDU> Date: 20 May 89 15:49:06 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 23