From 6e3cc260927d86d383546d8c4d51d7856a6f86d7 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Wed, 17 Jul 2024 22:28:06 +0200 Subject: [PATCH] Disabled garbage collection --- src/build/config/gc.go | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/build/config/gc.go diff --git a/src/build/config/gc.go b/src/build/config/gc.go new file mode 100644 index 0000000..522ae07 --- /dev/null +++ b/src/build/config/gc.go @@ -0,0 +1,7 @@ +package config + +import "runtime/debug" + +func init() { + debug.SetGCPercent(-1) +}