mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-15 16:33:40 +00:00
runtime: stub out weak pointer support
This commit is contained in:
committed by
Ron Evans
parent
bc77922d47
commit
8911abbc6d
@@ -125,6 +125,14 @@ type Cleanup struct{}
|
|||||||
|
|
||||||
func (c Cleanup) Stop() {}
|
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)
|
var godebugUpdate func(string, string)
|
||||||
|
|
||||||
//go:linkname godebug_setUpdate internal/godebug.setUpdate
|
//go:linkname godebug_setUpdate internal/godebug.setUpdate
|
||||||
|
|||||||
Reference in New Issue
Block a user