| 100 | } |
| 101 | |
| 102 | bool HotHeap::IsReferenced(addr_target addr, int size) |
| 103 | { |
| 104 | int blockStart = (int)(addr - mHotAreaStart) / BLOCK_SIZE; |
| 105 | int blockCount = (size + BLOCK_SIZE - 1) / BLOCK_SIZE; |
| 106 | for (int blockNum = blockStart; blockNum < blockStart + blockCount; blockNum++) |
| 107 | if ((mHotAreaUsed[blockNum] & HotUseFlags_Referenced) != 0) |
| 108 | return true; |
| 109 | return false; |
| 110 | } |
| 111 | |
| 112 | void HotHeap::MarkBlockReferenced(addr_target addr) |
| 113 | { |