From acdaa72365198167baba7dd7769bca69716a5b46 Mon Sep 17 00:00:00 2001 From: cornelk Date: Mon, 11 May 2020 17:35:03 +0300 Subject: [PATCH] runtime: fix compilation errors when using gc.extalloc --- src/runtime/gc_extalloc.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/runtime/gc_extalloc.go b/src/runtime/gc_extalloc.go index 95b06a49..296ac7a0 100644 --- a/src/runtime/gc_extalloc.go +++ b/src/runtime/gc_extalloc.go @@ -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. +}