| commit | 23fdf8b359a690f457c5300338f4994d06402b95 | [log] [tgz] |
|---|---|---|
| author | Daniel Micay <danielmicay@gmail.com> | Tue Sep 09 15:26:05 2014 -0400 |
| committer | Daniel Micay <danielmicay@gmail.com> | Wed Sep 10 21:49:42 2014 -0400 |
| tree | 844764bf82b598fcf06a03555c3b3e92e3caed4e | |
| parent | 6b5609d23bf49423fdc6506281e0deac7c3a524e [diff] |
mark some conditions as unlikely * assertion failure * malloc_init failure * malloc not already initialized (in malloc_init) * running in valgrind * thread cache disabled at runtime Clang and GCC already consider a comparison with NULL or -1 to be cold, so many branches (out-of-memory) are already correctly considered as cold and marking them is not important.