Commit Graph

13 Commits

Author SHA1 Message Date
jvoisin b511696c55 clean up includes and remove non-portable includes
This marginally increases the portability of hardened_malloc,
eg. on OSX.
2022-02-07 07:14:51 -05:00
Daniel Micay 1d15d34c7e return errors from memory_set_name too 2021-03-22 14:19:02 -04:00
Daniel Micay 29ffcdf810 portable error reporting for memory API 2021-03-22 13:59:16 -04:00
Daniel Micay b84af9b499 add wrapper for madvise 2021-03-22 12:24:26 -04:00
Daniel Micay a32e26b8e9 avoid trying to use mremap outside of Linux 2019-07-05 21:59:44 -04:00
Daniel Micay c9df70d934 add support for labelling memory regions 2019-02-13 13:34:33 -05:00
Daniel Micay 0b963078d5 guard metadata with Memory Protection Keys (MPK) 2018-10-23 01:11:31 -04:00
Daniel Micay 54c78fe1c2 distinguish between mmap / mremap errors 2018-10-10 19:05:35 -04:00
Daniel Micay eb7ced7781 implement in-place growth of large allocations 2018-10-06 13:24:22 -04:00
Daniel Micay 00b2613e16 add mmap MAP_FIXED wrapper for dropping slabs 2018-08-29 13:04:52 -04:00
Daniel Micay d779d41721 wrap more memory mapping implementation details 2018-08-29 10:57:42 -04:00
Daniel Micay 1cb28531a8 add wrapper for mremap with sanity check 2018-08-29 10:43:54 -04:00
Daniel Micay 58d929c0f0 split out low-level memory mapping wrappers 2018-08-29 00:53:38 -04:00