From f12c66fbed546645389cf184b0e2ffd6ad9f78ec Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Tue, 22 Apr 2025 10:24:37 +0000 Subject: internal/runtime/cgroup: CPU cgroup limit discovery For #73193. Change-Id: I6a6a636ca9fa9cba429cf053468c56c2939cb1ac Reviewed-on: https://go-review.googlesource.com/c/go/+/668638 LUCI-TryBot-Result: Go LUCI Reviewed-by: Michael Knyszek --- src/runtime/panic.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/runtime/panic.go') diff --git a/src/runtime/panic.go b/src/runtime/panic.go index b8f23cc3c2..95305b84bc 100644 --- a/src/runtime/panic.go +++ b/src/runtime/panic.go @@ -1056,6 +1056,11 @@ func internal_sync_fatal(s string) { fatal(s) } +//go:linkname cgroup_throw internal/runtime/cgroup.throw +func cgroup_throw(s string) { + throw(s) +} + // throw triggers a fatal error that dumps a stack trace and exits. // // throw should be used for runtime-internal fatal errors where Go itself, -- cgit v1.3-5-g9baa