public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d7522b
)
try another SBRK
author
ceriel
<none@none>
Mon, 11 Jul 1988 14:06:11 +0000
(14:06 +0000)
committer
ceriel
<none@none>
Mon, 11 Jul 1988 14:06:11 +0000
(14:06 +0000)
modules/src/malloc/mal.c
patch
|
blob
|
history
diff --git
a/modules/src/malloc/mal.c
b/modules/src/malloc/mal.c
index
7439ef7
..
cf89244
100644
(file)
--- a/
modules/src/malloc/mal.c
+++ b/
modules/src/malloc/mal.c
@@
-91,6
+91,10
@@
malloc(n)
}
p = SBRK((int)req);
+ if (p == ILL_BREAK) {
+ req = n + mallink_size();
+ p = SBRK((int)req);
+ }
if (p == ILL_BREAK) {
/* Now this is bad. The system will not give us
more memory. We can only liquidate our store