[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#18995: Error: Could not reserve dynamic heap area.
From: |
Eli Zaretskii |
Subject: |
bug#18995: Error: Could not reserve dynamic heap area. |
Date: |
Sun, 09 Nov 2014 18:47:00 +0200 |
> From: Andreas Schwab <schwab@linux-m68k.org>
> Cc: eliz@gnu.org, haroogan@gmail.com
> Date: Sun, 09 Nov 2014 17:30:21 +0100
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> > Given that, it is justified for GCC to give us what we deserve, i.e. a
> > loop "unrolled" by executing its body only once. I present the
> > disassembly below, for the curious, and it's clear that there's no
> > loop there, and also the value of 'size' is never tested at all, since
> > GCC decided that the condition 'size > 0x00100000' is always true.
>
> But if you replace 'size > 0x00100000' with true, you get a loop that is
> conditionalized by '!ptr', which depends on the execution of the loop
> body. Why would it be correct to execute the loop only once,
> unconditionally?
Feel free to report this as a GCC bug, if you think that's what it is.
All I can tell is that the same behavior is present in 3 different GCC
releases from 3 different major versions.
In any case, I think the original code had a subtle bug, in that the
comparison of 'size' didn't do what the author intended.
- bug#18995: Error: Could not reserve dynamic heap area., (continued)
- bug#18995: Error: Could not reserve dynamic heap area., Eli Zaretskii, 2014/11/08
- bug#18995: Error: Could not reserve dynamic heap area., Alexander Shukaev, 2014/11/08
- bug#18995: Error: Could not reserve dynamic heap area., Eli Zaretskii, 2014/11/08
- bug#18995: Error: Could not reserve dynamic heap area., Alexander Shukaev, 2014/11/08
- bug#18995: Error: Could not reserve dynamic heap area., Eli Zaretskii, 2014/11/08
- bug#18995: Error: Could not reserve dynamic heap area., Alexander Shukaev, 2014/11/08
- bug#18995: Error: Could not reserve dynamic heap area., Eli Zaretskii, 2014/11/08
- bug#18995: Error: Could not reserve dynamic heap area., Daniel Colascione, 2014/11/08
- bug#18995: Error: Could not reserve dynamic heap area., Eli Zaretskii, 2014/11/09
- bug#18995: Error: Could not reserve dynamic heap area., Andreas Schwab, 2014/11/09
- bug#18995: Error: Could not reserve dynamic heap area.,
Eli Zaretskii <=
- Message not available
- bug#18995: Error: Could not reserve dynamic heap area., Alexander Shukaev, 2014/11/09
- bug#18995: Error: Could not reserve dynamic heap area., Andreas Schwab, 2014/11/09
- bug#18995: Error: Could not reserve dynamic heap area., Alexander Shukaev, 2014/11/09
- bug#18995: Error: Could not reserve dynamic heap area., Eli Zaretskii, 2014/11/09
- bug#18995: Error: Could not reserve dynamic heap area., Alexander Shukaev, 2014/11/09
- bug#18995: Error: Could not reserve dynamic heap area., Eli Zaretskii, 2014/11/09
- bug#18995: Error: Could not reserve dynamic heap area., Eli Zaretskii, 2014/11/09
- Message not available
- Message not available
- bug#18995: Error: Could not reserve dynamic heap area., Daniel Colascione, 2014/11/09