memory
memory copied to clipboard
STL compatible C++ memory allocator library using a new RawAllocator concept that is similar to an Allocator but easier to use and write.
Sorry for posting my question in issue section. I find that file container_node_sizes_impl.hpp is generated during build process by nodesize_dbg. Is this file platform related ? I mean are the...
This is more of a question than an issue, and potentially a feature request. I have a class managing a kind of a graph data structure, where standard containers (maps...
In addition to memory-specific concepts already described in [docs](http://foonathan.github.io/doc/memory/md_doc_concepts.html), it would be useful to describe basic concepts of memory management, such as allocator, arena, pool, etc. This would make the...
The tests are build on main branch with the latest NDK When run on Android prints three errors ``` FATAL ERROR: REQUIRE( detail::is_aligned(ptr, def_alignment) ) is NOT correct! ``` The...
Crash when deallocating shared_ptr building for `arm64` -- Xcode Apple clang version 14.0.3 (clang-1403.0.22.14.1) Has been happening for a couple major Xcode versions so far. Example program ``` using StaticMemoryPoolAllocator...
While cross-compiling I get this error. It worked in `0.7-1` ```bash ~/github/foonathan/memory/build$ cmake .. -DCMAKE_TOOLCHAIN_FILE=~Downloads/wrsdk/vxsdk/sysroot/mk/toolchain.cmake -- The C compiler identification is Clang 15.0.0 -- The CXX compiler identification is Clang...
Hi, I'm trying to create a memory_pool with 4KiB alignment. I tried to wrap the memory_pool with aligned_allocator, but it fails as the max alignment from a reason I can't...
A `memory_pool` manages nodes of fixed size, is stateful, and not thread-safe. The fixed-size nodes implies that the `allocate_node()` function does not take any arguments. `thread_safe_allocator` takes size and alignment...
Hi, When I build this project (with gcc 14) for this code: https://github.com/foonathan/memory/blob/016c9fbd61b57ed2058551dcf225c15a0e716cce/src/virtual_memory.cpp#L48-L52 I had this error: >src/virtual_memory.cpp: In function 'void foonathan::memory::virtual_memory_release(void*, std::size_t)': src/virtual_memory.cpp:50:10: error: unused variable 'result' [-Werror=unused-variable] 50...