try another SBRK

This commit is contained in:
ceriel 1988-07-11 14:06:11 +00:00
parent 6d7522ba44
commit 45bb3b1413

View file

@ -91,6 +91,10 @@ malloc(n)
} }
p = SBRK((int)req); p = SBRK((int)req);
if (p == ILL_BREAK) {
req = n + mallink_size();
p = SBRK((int)req);
}
if (p == ILL_BREAK) { if (p == ILL_BREAK) {
/* Now this is bad. The system will not give us /* Now this is bad. The system will not give us
more memory. We can only liquidate our store more memory. We can only liquidate our store