Skip to content

mark some conditions as unlikely - #120

Merged
jasone merged 2 commits into
jemalloc:devfrom
thestinger:expect
Sep 11, 2014
Merged

jasone merged 2 commits into
jemalloc:devfrom
thestinger:expect

Conversation

@thestinger

Copy link
Copy Markdown
Contributor

No description provided.

* 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.
@jasone
jasone merged commit 23fdf8b into jemalloc:dev Sep 11, 2014
@jasone

jasone commented Sep 11, 2014

Copy link
Copy Markdown
Member

Thanks!

@thestinger
thestinger deleted the expect branch September 11, 2014 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants