(&self, consumer: &MemoryConsumer)
| 211 | } |
| 212 | |
| 213 | fn unregister(&self, consumer: &MemoryConsumer) { |
| 214 | if consumer.can_spill { |
| 215 | let mut state = self.state.lock(); |
| 216 | state.num_spill = state.num_spill.checked_sub(1).unwrap(); |
| 217 | } |
| 218 | } |
| 219 | |
| 220 | fn grow(&self, reservation: &MemoryReservation, additional: usize) { |
| 221 | let mut state = self.state.lock(); |