userpro / MemoryPool

一个极简内存池实现
MIT License
276 stars 96 forks source link

issues for auto-extended #11

Closed brt-wu-jian closed 5 days ago

brt-wu-jian commented 2 years ago

I think the extended feature has problem: image In above code, why compare with the value mem_pool_size? max_mem_pool_size should be used instead here in my opinion.

Another place is: image

In my opinion, it should be modified as below: image

Please correct me if my understanding is wrong.

Type Chinese is also okay for me.

Thank you.

userpro commented 9 months ago

这俩个点都在于 mempool_size 是个常量,我新增点注释说明一下