mark pvalloc error path as unlikely

pull/138/head
Daniel Micay 2021-05-12 21:01:13 -04:00
parent b0f81365a8
commit da190f1469
1 changed files with 1 additions and 1 deletions

View File

@ -1512,7 +1512,7 @@ EXPORT void *h_valloc(size_t size) {
EXPORT void *h_pvalloc(size_t size) { EXPORT void *h_pvalloc(size_t size) {
size = PAGE_CEILING(size); size = PAGE_CEILING(size);
if (!size) { if (unlikely(!size)) {
errno = ENOMEM; errno = ENOMEM;
return NULL; return NULL;
} }