bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#31852: Make memory-limit obsolete


From: Paul Eggert
Subject: bug#31852: Make memory-limit obsolete
Date: Fri, 15 Jun 2018 18:33:47 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

Tags: patch

The memory-limit function has an implementation that is a relic of long-ago days when the heap was allocated via sbrk. This assumption is often no longer true now that ASLR is popular, and once we get portable dumping work it'll be true even less often. Since memory-limit returns nonsense so often and since nobody cares, we can and should mark memory-limit as obsolete. On its way out we can move it to a Lisp implementation and cause it to be at least somewhat more plausible.

Proposed patches attached. The first patch moves memory-limit to Lisp, the second one marks it obsolete. I didn't know where to put the Lisp implementation so I put it into lisp/subr.el.

Attachment: 0001-Rewrite-memory-limit-in-Lisp.patch
Description: Text Data

Attachment: 0002-Obsolete-memory-limit.patch
Description: Text Data


reply via email to

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