summaryrefslogtreecommitdiff
path: root/linker/linker_memory.cpp
AgeCommit message (Collapse)Author
2019-01-25Move the linker allocator into libcRyan Prichard
Rename LinkerMemoryAllocator -> BionicAllocator Rename LinkerSmallObjectAllocator -> BionicSmallObjectAllocator libc and the linker need to share an instance of the allocator for allocating and freeing dynamic ELF TLS memory (DTVs and segments). The linker also continues to use this allocator. Bug: http://b/78026329 Test: /data/nativetest/bionic-unit-tests-static Test: /data/nativetest64/bionic-unit-tests-static Test: /data/nativetest/linker-unit-tests/linker-unit-tests32 Test: /data/nativetest64/linker-unit-tests/linker-unit-tests64 Change-Id: I2da037006ddf8041a75f3eba2071a8fcdcc223ce
2018-09-26Add reallocarray(3).Elliott Hughes
Originally a BSD extension, now in glibc too. We've used it internally for a while. (cherry-pick of e4b13f7e3ca68edfcc5faedc5e7d4e13c4e8edb9.) Bug: http://b/112163459 Test: ran tests Change-Id: I813c3a62b13ddb91ba41e32a5a853d09207ea6bc Merged-In: I813c3a62b13ddb91ba41e32a5a853d09207ea6bc
2018-01-24linker_memory: return success in enable_fallback_allocator.Josh Gao
Instead of aborting when in use, return a bool instead. Test: debuggerd_test Change-Id: Ifd2e4439303c95054298b0a05e0cb648ded1306c
2017-05-03Move libc_log code into libasync_safe.Christopher Ferris
This library is used by a number of different libraries in the system. Make it easy for platform libraries to use this library and create an actual exported include file. Change the names of the functions to reflect the new name of the library. Run clang_format on the async_safe_log.cpp file since the formatting is all over the place. Bug: 31919199 Test: Compiled for angler/bullhead, and booted. Test: Ran bionic unit tests. Test: Ran the malloc debug tests. Change-Id: I8071bf690c17b0ea3bc8dc5749cdd5b6ad58478a
2017-03-08linker_memory: allow fallback allocator to be turned on and off.Josh Gao
Let the fallback allocator be used on multiple threads (as long as only one thread is using it at once). Bug: http://b/35858739 Change-Id: Id3e2fc6b7c093c6e56870524ffda28946de09e29
2017-02-16Merge changes from topic 'debuggerd_inproc'Josh Gao
* changes: linker: use fallback crash handler dumping. linker: add android_use_fallback_allocator.
2017-02-15linker: add android_use_fallback_allocator.Josh Gao
Add a function to enable a fallback allocator to use for crash handling in a signal handler. Bug: http://b/34684590 Test: crasher PR_SET_NO_NEW_PRIVS Change-Id: Ifa5de636164f34b8cb2fdec4471c20f8516b6dbe
2017-02-15Unify linker files under one license (BSD)Dimitry Ivanov
Historically we had part of the linker licensed under BSD and another part under Apache 2 license. This commit makes all the linker code licensed under BSD license. Test: m Change-Id: I11b8163ae75966b5768d3fe992679de376106515
2015-03-16General purpose memory allocator for linker.Dmitriy Ivanov
Add basic general purpose memory allocator to linker in order to enable usage of other libraries like libziparchive. Change-Id: I4a680ebb36ed5ba67c61249f81dba9f567808434