Make sure minFill is correct - call with mu held
()
| 198 | |
| 199 | // Make sure minFill is correct - call with mu held |
| 200 | func (bp *Pool) updateMinFill() { |
| 201 | if len(bp.cache) < bp.minFill { |
| 202 | bp.minFill = len(bp.cache) |
| 203 | } |
| 204 | } |
| 205 | |
| 206 | // acquire mem bytes of memory for the user |
| 207 | func (bp *Pool) acquire(mem int64) error { |