* sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the program's data space, reallocate only the space that was just deallocated to release its backing space.
2000-07-22 Mark Kettenis <kettenis@gnu.org> * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the program's data space, reallocate only the space that was just deallocated to release its backing space.
This commit is contained in:
parent
6a1fc4ed17
commit
6abc15e943
@ -1,3 +1,9 @@
|
||||
2000-07-22 Mark Kettenis <kettenis@gnu.org>
|
||||
|
||||
* sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
|
||||
program's data space, reallocate only the space that was just
|
||||
deallocated to release its backing space.
|
||||
|
||||
2000-07-23 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* stdio-common/vfprintf.c (process_string_arg): For wide character
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1991,92,93,94,95,96,97,99 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1991,92,93,94,95,96,97,99,2000 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -78,7 +78,7 @@ _hurd_set_brk (vm_address_t addr)
|
||||
__vm_deallocate (__mach_task_self (), pagend, pagebrk - pagend);
|
||||
/* Now reallocate it with no access allowed. */
|
||||
err = __vm_map (__mach_task_self (),
|
||||
&pagend, _hurd_data_end - pagend,
|
||||
&pagend, pagebrk - pagend,
|
||||
0, 0, MACH_PORT_NULL, 0, 0,
|
||||
0, VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE,
|
||||
VM_INHERIT_COPY);
|
||||
|
Loading…
x
Reference in New Issue
Block a user