memory-allocators icon indicating copy to clipboard operation
memory-allocators copied to clipboard

Custom memory allocators in C++ to improve the performance of dynamic memory allocation

Results 18 memory-allocators issues
Sort by recently updated
recently updated
newest added

I assume that the project has been abandoned since a some pull requests are pending. Anyways, I will address a few things here for those coming to this repository in...

![图片](https://user-images.githubusercontent.com/18509370/96958115-1b43b380-152f-11eb-865c-d8a097cba1ac.png) look at this picture above plz...we know that the type of "rest ", "data.blockSize" and "requiredSize" is std::size_t. However, std::size_t is unsigned __int64. So they are unsigned. if you...

Addressed #8 where calling Free on the StackAllocator would access garbage in the `AllocationHeader` While I was there I made the points declarations more consistent with the codebase and specified...

1. when allocate memory: if rest < sizeof(Node), it should not insert to free list. 2. when free memory: if free list head is nullptr, we should set head ptr....

# Compilation Error When compiling with Clang on Xcode, I get the following error ``` ../src/StackAllocator.cpp:39:39: error: non-constant-expression cannot be narrowed from type 'std::size_t' (aka 'unsigned long') to 'char' in...

Getting some build errors, screenshot attached. Environment: Win10, VS 2017 ![image](https://user-images.githubusercontent.com/47186404/90971341-f0d47a80-e52c-11ea-8514-2c90fb40d02a.png)

i'm not sure. alloc/free is important for Performance. is virutal function make a deal

Hi mtrebi, Thanks for the modification of making it running on Windows first. However I found places that confuse me a lot in FreeListAllocator. First, is it a must that...

bug

Shouldn't the `smallestDiff` be updated along with the `bestBlock` in here? `if (it->data.blockSize >= requiredSpace && (it->data.blockSize - requiredSpace < smallestDiff)) {` `bestBlock = it;` ` }` `smallestDiff = it->data.blockSize`...

show how to use this lib