mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-18 06:30:05 +00:00
Sun Dec 10 09:56:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* elf/dl-minimal.c (malloc): Use MAP_PRIVATE in mmap call.
This commit is contained in:
parent
787e4db95c
commit
25b86c05c3
@ -1,3 +1,7 @@
|
|||||||
|
Sun Dec 10 09:56:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
|
||||||
|
|
||||||
|
* elf/dl-minimal.c (malloc): Use MAP_PRIVATE in mmap call.
|
||||||
|
|
||||||
Fri Dec 8 13:04:51 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
|
Fri Dec 8 13:04:51 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
|
||||||
|
|
||||||
* locale/error.c, locale/error.h: Files removed.
|
* locale/error.c, locale/error.h: Files removed.
|
||||||
|
@ -60,7 +60,8 @@ malloc (size_t n)
|
|||||||
/* Insufficient space left; allocate another page. */
|
/* Insufficient space left; allocate another page. */
|
||||||
caddr_t page;
|
caddr_t page;
|
||||||
assert (n <= pagesize);
|
assert (n <= pagesize);
|
||||||
page = mmap (0, pagesize, PROT_READ|PROT_WRITE, MAP_ANON, _dl_zerofd, 0);
|
page = mmap (0, pagesize, PROT_READ|PROT_WRITE,
|
||||||
|
MAP_ANON|MAP_PRIVATE, _dl_zerofd, 0);
|
||||||
assert (page != (caddr_t) -1);
|
assert (page != (caddr_t) -1);
|
||||||
if (page != alloc_end)
|
if (page != alloc_end)
|
||||||
alloc_ptr = page;
|
alloc_ptr = page;
|
||||||
|
Loading…
Reference in New Issue
Block a user