MCPcopy Create free account
hub / github.com/erans/pgsqlite / execute_cleanup_callbacks

Method execute_cleanup_callbacks

src/protocol/memory_monitor.rs:292–303  ·  view source on GitHub ↗

Execute registered cleanup callbacks

(&self, aggressive: bool)

Source from the content-addressed store, hash-verified

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) {

Callers 2

trigger_cleanupMethod · 0.80
force_cleanupMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected