Comments (3)
已更新 谢大佬指正
from memorypool.
最新的资源,启用自动扩展后,如果初始化指定的块小于后面某次申请时的大小,你的if (mp->mem_pool_size - mm->alloc_mem < total_size)判断+自动扩展会导致系统内存全被申请掉。这里应该做适当的规避。
from memorypool.
已更新
from memorypool.
Related Issues (13)
- 关于释放内存报错 HOT 2
- 大哥,我用了你的代码,内存释放报错 HOT 3
- 在调用get_mempool_usage方法时,突然返回一个很大的值 HOT 3
- 是否保证线程安全 HOT 1
- 建议区分一下读写场景,然后根据不同场景加读写锁可以提高并发场景下的性能
- 使用windows的wchar_t分配内存后释放存在问题 HOT 11
- issues for auto-extended HOT 1
- mem leak HOT 1
- 关于list分区 HOT 1
- 关于void* MemoryPoolAlloc(MemoryPool* mp, mem_size_t wantsize)部分的逻辑疑问
- bug:static int merge_free_chunk(MemoryPool* mp, _MP_Memory* mm, _MP_Chunk* c)
- 初始化时,空闲块尾指针应当指向首地址
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from memorypool.