(start common.Pgid, size uint64)
| 150 | } |
| 151 | |
| 152 | func (f *hashMap) addSpan(start common.Pgid, size uint64) { |
| 153 | f.backwardMap[start-1+common.Pgid(size)] = size |
| 154 | f.forwardMap[start] = size |
| 155 | if _, ok := f.freemaps[size]; !ok { |
| 156 | f.freemaps[size] = make(map[common.Pgid]struct{}) |
| 157 | } |
| 158 | |
| 159 | f.freemaps[size][start] = struct{}{} |
| 160 | f.freePagesCount += size |
| 161 | } |
| 162 | |
| 163 | func (f *hashMap) delSpan(start common.Pgid, size uint64) { |
| 164 | delete(f.forwardMap, start) |
no test coverage detected