1
1

Merge pull request #7145 from devreal/shmem_memheap_alloc_band_v4.0.x

Shmem: use bitwise and instead of logical and to check for allocator capabilities (v4.0.x)
Этот коммит содержится в:
Geoff Paulsen 2019-11-08 13:52:41 -06:00 коммит произвёл GitHub
родитель 524960dcdd ad86d043cf
Коммит 0e25083700
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23

Просмотреть файл

@ -70,7 +70,7 @@ int mca_memheap_alloc_with_hint(size_t size, long hint, void** ptr)
for (i = 0; i < mca_memheap_base_map.n_segments; i++) {
map_segment_t *s = &mca_memheap_base_map.mem_segs[i];
if (s->allocator && (hint && s->alloc_hints)) {
if (s->allocator && (hint & s->alloc_hints)) {
/* Do not fall back to default allocator since it will break the
* symmetry between PEs
*/