Sebastiaan van Stijn
4b6cc97c4d
plugins: modernize: any
...
go install golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest
modernize -any -fix ./...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-03-15 18:24:15 +01:00
Sebastiaan van Stijn
b35d9ea929
plugins: modernize: rangeint
...
go install golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest
modernize -rangeint -fix ./...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-03-15 14:56:20 +01:00
Maksym Pavlenko
253fbe756a
Cleanup unit tests
...
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com >
2026-01-06 10:52:49 -08:00
ningmingxiao
683cd7d60d
gc:make sure lastCollection is not nil
...
Signed-off-by: ningmingxiao <ning.mingxiao@zte.com.cn >
2025-09-01 10:48:38 +08:00
Kirill A. Korinsky
c8766123d9
Prevent GC from schedule itself with 0 period.
...
On startup `gcTimeSum` might work fast and return `0`, so on this case
the algorithm turns in infinity loop which simple consume CPU on timer
which fires without any interval.
Use `5ms` as fallback to have interval `245ms` for that case.
Closes: https://github.com/containerd/containerd/issues/5089
Signed-off-by: Kirill A. Korinsky <kirill@korins.ky >
2024-02-15 11:32:53 +01:00
Maksym Pavlenko
9340be717f
Remove duplicated TOML duration parsers
...
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com >
2024-02-01 11:48:33 -08:00
Derek McGowan
5e00f63ce7
Move gc to pkg/gc
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:55:12 -08:00
Derek McGowan
11114b0a9a
Move gc/scheduler to plugins/gc
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:55:03 -08:00