From 19db0144aeacf12fabce9f02bd44dd60f0bfb694 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Fri, 13 Jan 2023 20:02:54 +0100 Subject: [PATCH] runtime: implement internal/godebug.setUpdate as a stub This function provides a mechanism to watch for changes to the GODEBUG environment variable. For now, we'll not implement it. It might be useful in the future, when it can always be added. --- src/runtime/runtime.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/runtime/runtime.go b/src/runtime/runtime.go index eecedee2..1a2a0495 100644 --- a/src/runtime/runtime.go +++ b/src/runtime/runtime.go @@ -95,3 +95,9 @@ func KeepAlive(x interface{}) { func SetFinalizer(obj interface{}, finalizer interface{}) { // Unimplemented. } + +//go:linkname godebug_setUpdate internal/godebug.setUpdate +func godebug_setUpdate(update func(string, string)) { + // Unimplemented. The 'update' function needs to be called whenever the + // GODEBUG environment variable changes (for example, via os.Setenv). +}