mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-24 21:41:48 -08:00
(mem_insert): Set min_heap_address and max_heap_address
if they are not yet initialized.
This commit is contained in:
parent
510b69a886
commit
add3c3eac4
2 changed files with 7 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2007-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
|
||||
|
||||
* alloc.c (mem_insert): Set min_heap_address and max_heap_address
|
||||
if they are not yet initialized.
|
||||
|
||||
2007-04-15 Chong Yidong <cyd@stupidchicken.com>
|
||||
|
||||
* xdisp.c (redisplay_window): When deciding whether or not to
|
||||
|
|
|
|||
|
|
@ -3615,9 +3615,9 @@ mem_insert (start, end, type)
|
|||
{
|
||||
struct mem_node *c, *parent, *x;
|
||||
|
||||
if (start < min_heap_address)
|
||||
if (min_heap_address == NULL || start < min_heap_address)
|
||||
min_heap_address = start;
|
||||
if (end > max_heap_address)
|
||||
if (max_heap_address == NULL || end > max_heap_address)
|
||||
max_heap_address = end;
|
||||
|
||||
/* See where in the tree a node for START belongs. In this
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue