fc_malloc
fc_malloc copied to clipboard
Critical Error
https://github.com/bytemaster/fc_malloc/blob/7a56cf9eae24e7f8d6add42417531a8dea18c337/malloc3.cpp#L802
May be too many thread claims and there are two threads get the same index in the ring buffer, so I think it may cause serious error.
I think claim block first and then compare claim_pos with _write_pos is safe. if claim_pos <= _write_pos, we can read the ring buffer.