fc_malloc icon indicating copy to clipboard operation
fc_malloc copied to clipboard

I think the merged block should be removed from cache bin if it is in there, or it will be alloc twice, is it right?

Open dingsp opened this issue 5 years ago • 1 comments

https://github.com/bytemaster/fc_malloc/blob/7a56cf9eae24e7f8d6add42417531a8dea18c337/malloc3.cpp#L615

dingsp avatar Mar 15 '20 16:03 dingsp

Lucky! it is a double linked list , we can remove it fast. Since the gc thread is single, we can also remove it safely.

dingsp avatar Mar 15 '20 16:03 dingsp