如果两个相等的空闲空间不是邻居, 谁能解释合并时算法会做什么?
initialMemory = 256;
allocate(50);
allocate(17);
allocate(33);
allocate(60);
Memory from 0 to 63 allocated
Memory from 64 to 95 allocated
Memory from 128 to 191 allocated
Memory from 192 to 255 allocated
free(50);
free(33);
不确定这个状态是否正确,
两个空闲的64 位空间,但没有合并?( 0-63 && 128-191 )
Memory from 64 to 95 allocated
Memory from 192 to 255 allocated
现在怎么了?!
尽管不是邻居,免费的 64 位空间能否以某种方式合并?
allocate(75)