推 ric2k1:根據 reference program, rn = getRecycleIdx(remainMem) 12/10 23:16
// 2. If not enough, recycle the remained memory and print out ---
// #ifdef MEM_DEBUG
// cout << "Recycling " << ret << " to (" << rn << ")" << endl;
在getMem裡面
當_activeBlock裡面剩下的空間不足時
要Recycle
我知道ret是目前要recycle的位置
那..rn呢??
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.247.20