> 
> I have a vague memory that one of the tests in SPEC has a loop that
> tries to malloc, doubling the size each time, until it fails.  Would
> the patch change the behavior of such a loop?

If the resulting allocation is unused except for NULL check we will make
it always "succeed" and thus the loop will likely loop forever.  I
wonder what this loop computes on systems, like linux, that overcommits
memory.

Clang implements this optimization for a while, I will run SPEC to see
if something breaks.

Honza
> 
> Sorry, I can't remember further details.
> Dave
> 

Reply via email to