]> git.ipfire.org Git - thirdparty/gcc.git/commit - libgomp/allocator.c
libgomp: Fix allocator handling for Linux when libnuma is not available
authorTobias Burnus <tobias@codesourcery.com>
Fri, 14 Jul 2023 07:14:37 +0000 (09:14 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Fri, 14 Jul 2023 07:19:57 +0000 (09:19 +0200)
commit407d68daed00e040a7d9545b2a18aa27bf93a106
treee86cfe93dc497656ef28bcdb7f4c952b6825f029
parentad0518d97cfc857183e524fabc104ebeec9e8ccd
libgomp: Fix allocator handling for Linux when libnuma is not available

Follow up to r14-2462-g450b05ce54d3f0.  The case that libnuma was not
available at runtime was not properly handled; now it falls back to
the normal malloc.

libgomp/

* allocator.c (omp_init_allocator): Check whether symbol from
dlopened libnuma is available before using libnuma for
allocations.
libgomp/allocator.c