64c3fdb4 | 09-Apr-2019 |
zrj <rimvydas.jasinskas@gmail.com> |
libc/stdlib: Add recallocarray() function.
It is useful function for security related features, like resizing memory objects containing sensitive data to avoid information leaking. Update manpage.
libc/stdlib: Add recallocarray() function.
It is useful function for security related features, like resizing memory objects containing sensitive data to avoid information leaking. Update manpage.
Taken-from: OpenBSD
show more ...
|
284b4eb2 | 01-Apr-2019 |
zrj <rimvydas.jasinskas@gmail.com> |
libc/stdlib: Add __cxa_thread_atexit_impl() hook.
The __cxa_thread_atexit_impl() helper is needed for mainly c++ runtime libraries to support destructors for thread local storage using LIFO. The _th
libc/stdlib: Add __cxa_thread_atexit_impl() hook.
The __cxa_thread_atexit_impl() helper is needed for mainly c++ runtime libraries to support destructors for thread local storage using LIFO. The _thread_finalize() is implemented based on OpenBSD variant with few exceptions: less restrictive destructors calling scheme and c++ runtime preserves implementation details how it orders (or even uses) this libc addition. Based on other BSDs and libsdc++/libc++ code this is least intrusive method to have pthread_exit() hooks in libc runtime. By the looks, in base system nothing was using libstdc++ internal version.
While there, enable __cxa_thread_atexit_impl() usage in gcc80 libstdc++.
show more ...
|
c8a21d03 | 01-Oct-2018 |
Imre Vadász <imre@vdsz.com> |
nmalloc - Try bigcache in posix_memalign() for big PAGE_SIZE aligned allocs.
* This improves performance (by reducing the amount of mmap() calls required and avoiding some amount of page faults) f
nmalloc - Try bigcache in posix_memalign() for big PAGE_SIZE aligned allocs.
* This improves performance (by reducing the amount of mmap() calls required and avoiding some amount of page faults) for applications which frequently call posix_memalign() with a 4096 byte alignment for allocations bigger than 8KB. Allocations of 8KB and smaller are efficiently handled by the SLAB allocator already.
show more ...
|
e9586122 | 17-Dec-2017 |
zrj <rimvydas.jasinskas@gmail.com> |
libc/nmalloc: Handle size_t overflows in posix_memalign().
Some algorithms/programs try to heuristically deduce alignment rules. Instead of confusing them with minimal allocations for size == (size_
libc/nmalloc: Handle size_t overflows in posix_memalign().
Some algorithms/programs try to heuristically deduce alignment rules. Instead of confusing them with minimal allocations for size == (size_t)-7 and friends at different alignment values, just return ENOMEM since POSIX does not explictly specify how alignment overflows should behave. Programs should keep track of pointers they try to allocate (including size == 0 case too).
show more ...
|