Execute registered cleanup callbacks
(&self, aggressive: bool)
| 290 | |
| 291 | /// Execute registered cleanup callbacks |
| 292 | fn execute_cleanup_callbacks(&self, aggressive: bool) { |
| 293 | let callbacks = self.cleanup_callbacks.lock(); |
| 294 | |
| 295 | for callback in callbacks.iter() { |
| 296 | callback(); |
| 297 | } |
| 298 | |
| 299 | if aggressive { |
| 300 | // Additional aggressive cleanup can be implemented here |
| 301 | // For example, forcing garbage collection or clearing more caches |
| 302 | } |
| 303 | } |
| 304 | |
| 305 | /// Log current memory status |
| 306 | fn log_memory_status(&self, current_memory: u64, pressure: MemoryPressure) { |
no outgoing calls
no test coverage detected