|
From: | Paul Eggert |
Subject: | Re: regex no longer needs to depend on malloc-gnu |
Date: | Thu, 17 Apr 2014 22:44:46 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
Nathan Kennedy wrote:
I think this dependency can be removed.
Thanks, I installed a patch along those lines.
the MALLOC_0_IS_NONNULL macro attempting to check for malloc(0) failure is not needed.
It's not needed for correctness, but it helps performance on GNU hosts, no? It lets them avoid an unnecessary test "size != 0" at runtime. The MALLOC_0_IS_NONNULL test is done at compile-time, and has no runtime overhead.
[Prev in Thread] | Current Thread | [Next in Thread] |