Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/libexec/ld.elf_so



Module Name:    src
Committed By:   skrll
Date:           Fri Jan  9 09:38:33 UTC 2026

Modified Files:
        src/libexec/ld.elf_so: xmalloc.c

Log Message:
Port the FreeBSD change

    Remove remnants of optimization for > pagesize allocations.

    In the past, this allocator seems to have allocated things larger than
    a page seperately. Much of this code was removed at some point (perhaps
    along with sbrk() used) so remove the rest. Instead, keep allocating in
    power-of-two bins up to FIRST_BUCKET_SIZE << (NBUCKETS - 1). If we want
    something more efficent, we should use a fancier allocator.

    While here, remove some vestages of sbrk() use. Most importantly, don't
    try to page align the pagepool since it's always page aligned by mmap().


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/libexec/ld.elf_so/xmalloc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index