You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix memory leak in thread-local VM & plugin caches (#357)
* Fix memory leak in thread-local VM & plugin caches
Since VM and plugin thread-local cache keys include volatile
parts (namely VM configuration, code and plugin configuration), their
reconfiguration/update (e.g. with Envoy ADS protocol) might lead to
memory leak by leaving those thread-local map stale keys behind. The
current cleanup method is insufficient, as it accounts only for cache
hit case.
Signed-off-by: Maxim Philippov <[email protected]>
* Use key queues for a bounded stale entries cleanup in local caches
Signed-off-by: Maxim Philippov <[email protected]>
* Linter fixes
Signed-off-by: Maxim Philippov <[email protected]>
* Fix code formatting
Signed-off-by: Maxim Philippov <[email protected]>
* Addressed code style comments
Signed-off-by: Maxim Philippov <[email protected]>
* Made getThreadLocalWasm more similar to other funcs
Signed-off-by: Maxim Philippov <[email protected]>
* Erase stale cache entries whenever we can
Signed-off-by: Maxim Philippov <[email protected]>
* Fix casing in comment
Signed-off-by: Maxim Philippov <[email protected]>
---------
Signed-off-by: Maxim Philippov <[email protected]>
0 commit comments