Skip to content

Drop runtime.GC() after every check

Florian Schmaus requested to merge flow/gitlab-runner:drop-gc into main

Although the code comment states that GC is only triggered after processing a build, it is actually called after every check. This causes unnecessary CPU cycles, that can become significant if multiple runners are configured, eventually causing unnecessary energy consumption.

This removes the GC run that was introduced with 0230a0135a9 ("Force GC cycle after processing build") and fixes issue #29280 (closed).

Edited by Florian Schmaus

Merge request reports