Memory allocation modules have been basically written. Help test the memory distributor.

xiaoxiao2021-03-06  111

My memory allocation module has basically completed the code writing. It will be a test work. (In addition to New and Delete are not overloaded, you can now directly call allocator's alloc () dealloc () to test)

I just finished writing. One test is too trouble. Everyone will help me test it. What is the problem tells me. I will modify it in time. I will modify even if it is reflected in the code. The code crashes are normal. I basically didn't test it, of course, I will continue to test.

My email:

XHEARTBLUE@tang.com MSN is also this. Thank you, first.

The functionality of the module is:

Manage memory allocation.

Small memory allocation. Object pool.

The memory leak was detected.

Detect the 4/2

Download address: http://xreal.51.net/dge/mem.rar

The module is mainly composed of the following parts.

ObjectPool object pool

Mempool memory pool

FastMalloc: High-speed large memory allocation

FastsmallLoc: Fast small memory allocation.

Fixmemalloc: large memory allocation of small waste space.

FixsmallMalloc: Small memory allocation of small waste space. Basically do not waste space.

MemState. Has a statistical memory state. DumpmemState and detection of the upline DumpBound.

All distributor memory is recorded by MEMSTATE in addition to FastMallOc. FastMallall memory status is recorded by himself, you can call FastMalloc :: Diagnostic () and FastMalloc :: DumpBound () to analyze the memory.

转载请注明原文地址:https://www.9cbs.com/read-100535.html

New Post(0)