summaryrefslogtreecommitdiff
path: root/sys/src/cmd/cc
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2020-04-10 22:26:37 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2020-04-10 22:26:37 +0200
commite610ffaf1b7847e82c18a1b9c687cdd7676f86c2 (patch)
tree58d0a1110febae03a4b0231c6107adb88fb57821 /sys/src/cmd/cc
parent2cdf1a3c795ff86c720b54e15b696d5e678238b1 (diff)
parenta39cc60c52310e0acf5e973b4fa99c7c014874d5 (diff)
merge
Diffstat (limited to 'sys/src/cmd/cc')
-rw-r--r--sys/src/cmd/cc/macbody11
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/src/cmd/cc/macbody b/sys/src/cmd/cc/macbody
index b6cf60e78..7d837fb43 100644
--- a/sys/src/cmd/cc/macbody
+++ b/sys/src/cmd/cc/macbody
@@ -854,16 +854,9 @@ gethunk(void)
char *h;
long nh;
- if(thunk >= 100L*NHUNK)
- nh = 100L*NHUNK;
- else if(thunk >= 50L*NHUNK)
- nh = 50L*NHUNK;
- else if(thunk >= 25L*NHUNK)
- nh = 25L*NHUNK;
- else if(thunk >= 10L*NHUNK)
+ nh = NHUNK;
+ if(thunk >= 10L*NHUNK)
nh = 10L*NHUNK;
- else
- nh = NHUNK;
h = (char*)mysbrk(nh);
if(h == (char*)-1) {
yyerror("out of memory");