corinthia-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Kelly <pmke...@apache.org>
Subject Re: More on the xmalloc project
Date Fri, 27 Feb 2015 10:11:11 GMT
> On 27 Feb 2015, at 3:59 am, Gabriela Gibson <gabriela.gibson@gmail.com> wrote:
> 
> Hi Peter, (and everyone else!)
> 
> I read your JIRA comment, and that's an interesting thing with the missing
> headerfiles.  My build report[1] was OK so, maybe  different compilers take
> headers in a different order?
> 
> Regards the clang build, should/could we have this as a regular build
> option in the CMake file?

I don’t really have an opinion on this personally… it’s the default compiler on OS X.
Depends if people want to use clang on linux/windows as well.

I wouldn’t regard it as a priority right now.

> Another thing to notice was that my test had quite a lot of malloc 0 calls,
> so whatever is run there, maybe it could do with a check, or perhaps
> xmalloc should check for if (!size) … ?

It’s valid to call malloc with a request of 0 bytes.

—
Dr Peter M. Kelly
pmkelly@apache.org

PGP key: http://www.kellypmk.net/pgp-key <http://www.kellypmk.net/pgp-key>
(fingerprint 5435 6718 59F0 DD1F BFA0 5E46 2523 BAA1 44AE 2966)


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message