Skip to content

Commit bb957fc

Browse files
committed
Merge branch 'dev' of https://github.com/microsoft/mimalloc into dev
2 parents aeb62c2 + cd633b2 commit bb957fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/os.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ size_t _mi_os_good_alloc_size(size_t size) {
113113
else if (size < 8*MiB) align_size = 256*KiB;
114114
else if (size < 32*MiB) align_size = 1*MiB;
115115
else align_size = 4*MiB;
116-
if (size >= (SIZE_MAX - align_size)) return size; // possible overflow?
116+
if (mi_unlikely(size >= (SIZE_MAX - align_size))) return size; // possible overflow?
117117
return _mi_align_up(size, align_size);
118118
}
119119

0 commit comments

Comments
 (0)