diff options
| author | 2023-06-21 23:52:23 +0200 | |
|---|---|---|
| committer | 2023-06-21 23:52:23 +0200 | |
| commit | 3f2221dfb9ab33b7ac44bbf822a78753a0357d25 (patch) | |
| tree | 5828192184328e405da0489d72d1c71a4be70316 /io.c | |
| parent | 995fd23ecd5de710a6f587d29af2874b1fb4756d (diff) | |
mem2reg: implement ssa construction; this breaks regalloc right now
Diffstat (limited to 'io.c')
| -rw-r--r-- | io.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -637,8 +637,8 @@ mapopen(const char **err, const char *path) int ret; do { - enum { CHUNKSIZ = 1<<16 }; - if ((cap += CHUNKSIZ) < CHUNKSIZ) { + enum { CHUNKSIZ = 1<<10 }; + if (f.n + CHUNKSIZ >= cap && (cap += CHUNKSIZ) < CHUNKSIZ) { /* overflow */ free(p); goto Big; |