From 472bc4382568ebec488a272fe527f23af7772659 Mon Sep 17 00:00:00 2001 From: ceriel Date: Mon, 11 Jul 1988 14:06:11 +0000 Subject: [PATCH] try another SBRK --- modules/src/malloc/mal.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/src/malloc/mal.c b/modules/src/malloc/mal.c index 7439ef77..cf892445 100644 --- 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