Message ID | AANLkTi=dtGEDBOOq2iYD-1Cbp0aT3DGHYDX51mAcECJL@mail.gmail.com |
---|---|
State | New |
Headers | show |
--- arm-semi.c.orig 2010-09-21 13:19:15.000000000 +0100 +++ arm-semi.c 2010-10-07 13:23:13.000000000 +0100 @@ -475,7 +475,7 @@ /* Try a big heap, and reduce the size if that fails. */ for (;;) { ret = do_brk(limit); - if (ret != -1) + if (ret == limit) break; limit = (ts->heap_base >> 1) + (limit >> 1); }