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)
Этот коммит содержится в:
Коммит
0e25083700
@ -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
|
||||
*/
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user