diff options
Diffstat (limited to 'src/runtime/runtime.go')
-rw-r--r-- | src/runtime/runtime.go | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/runtime/runtime.go b/src/runtime/runtime.go index 586a610ae..03bdb450e 100644 --- a/src/runtime/runtime.go +++ b/src/runtime/runtime.go @@ -88,12 +88,9 @@ func LockOSThread() { func UnlockOSThread() { } -func KeepAlive(x interface{}) { - // Unimplemented. - // TODO: This function needs to be implemented in a way that LLVM doesn't optimize away the x - // parameter. This will likely need either a volatile operation or calling an assembly stub - // that simply returns. -} +// KeepAlive makes sure the value in the interface is alive until at least the +// point of the call. +func KeepAlive(x interface{}) var godebugUpdate func(string, string) |