Branch
Hash :
94371026
Author :
Date :
2025-09-14T00:24:21
pagealign_alloc: Fix scalability problem. Reported by Harry Sintonen <sintonen@iki.fi> in <https://lists.gnu.org/archive/html/bug-gnulib/2025-09/msg00108.html>. * lib/pagealign_alloc.c: Include gl_xmap.h, gl_hash_map.h. Don't include xalloc.h. (info_t, memnode_t, struct memnode_s): Remove types. (memnode_table): Remove variable. (new_memnode, get_memnode): Remove functions. (page_info_map): New variable. (pagealign_alloc): Use gl_map_put instead of new_memnode. (pagealign_free): Use gl_map_getremove instead of get_memnode. * modules/pagealign_alloc (Depends-on): Add xmap, hash-map. Remove xalloc.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
Description:
Memory allocation aligned on page boundaries.
Files:
lib/pagealign_alloc.h
lib/pagealign_alloc.c
m4/mmap-anon.m4
m4/pagealign_alloc.m4
Depends-on:
error
extensions
getpagesize
gettext-h
gnulib-i18n
stdlib-h
unistd-h
stdint-h
xmap
hash-map
configure.ac:
gl_PAGEALIGN_ALLOC
Makefile.am:
lib_SOURCES += pagealign_alloc.c
Include:
"pagealign_alloc.h"
Link:
$(LTLIBINTL) when linking with libtool, $(LIBINTL) otherwise
License:
GPL
Maintainer:
bug-gnulib@gnu.org