runtime: stub out weak pointer support

This commit is contained in:
Ayke van Laethem
2025-08-04 10:31:48 +02:00
committed by Ron Evans
parent bc77922d47
commit 8911abbc6d
+8
View File
@@ -125,6 +125,14 @@ type Cleanup struct{}
func (c Cleanup) Stop() {}
//go:linkname registerWeakPointer weak.runtime_registerWeakPointer
func registerWeakPointer(ptr unsafe.Pointer) unsafe.Pointer {
// TODO: unimplemented.
// I hope not implementing this won't break anything, like packages that
// expect weak pointers to be GC'd before they actually are.
return ptr
}
var godebugUpdate func(string, string)
//go:linkname godebug_setUpdate internal/godebug.setUpdate