Adhemerval Zanella 23021eda75 malloc: Use __get_nprocs on arena_get2 (BZ 30945)
This restore the 2.33 semantic for arena_get2.  It was changed by
11a02b035b46 to avoid arena_get2 call malloc (back when __get_nproc
was refactored to use an scratch_buffer - 903bc7dcc2acafc).  The
__get_nproc was refactored over then and now it also avoid to call
malloc.

The 11a02b035b46 did not take in consideration any performance
implication, which should have been discussed properly.  The
__get_nprocs_sched is still used as a fallback mechanism if procfs
and sysfs is not acessible.

Checked on x86_64-linux-gnu.
Reviewed-by: DJ Delorie <dj@redhat.com>

(cherry picked from commit 472894d2cfee5751b44c0aaa71ed87df81c8e62e)
2024-02-12 09:56:44 -03:00
..
2016-10-28 22:40:16 -04:00
2021-06-22 12:09:52 -03:00
2021-12-28 22:52:56 +01:00
2023-01-31 21:44:54 -05:00
2021-06-15 10:42:11 -03:00
2021-06-15 10:42:11 -03:00
2017-04-07 07:45:53 -04:00
2021-07-22 18:38:04 +05:30
2021-09-15 22:57:35 +00:00
2021-07-07 18:33:52 +02:00
2021-06-30 08:43:37 +02:00
2021-09-21 08:00:44 -07:00
2019-05-02 11:42:51 +02:00
2019-10-09 17:48:41 -03:00
2022-09-17 19:58:30 +00:00
2021-06-30 08:43:37 +02:00
2019-11-06 09:20:52 -03:00
2022-05-13 19:15:46 +05:30