runtime: fix compilation errors when using gc.extalloc

This commit is contained in:
cornelk
2020-05-11 17:35:03 +03:00
committed by Ayke
parent 01f5c1d455
commit acdaa72365
+8
View File
@@ -602,3 +602,11 @@ func alloc(size uintptr) unsafe.Pointer {
func free(ptr unsafe.Pointer) {
// Currently unimplemented due to bugs in coroutine lowering.
}
func KeepAlive(x interface{}) {
// Unimplemented. Only required with SetFinalizer().
}
func SetFinalizer(obj interface{}, finalizer interface{}) {
// Unimplemented.
}