Skip to content

Commit acdaa72

Browse files
cornelkaykevl
authored andcommitted
runtime: fix compilation errors when using gc.extalloc
1 parent 01f5c1d commit acdaa72

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/runtime/gc_extalloc.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,3 +602,11 @@ func alloc(size uintptr) unsafe.Pointer {
602602
func free(ptr unsafe.Pointer) {
603603
// Currently unimplemented due to bugs in coroutine lowering.
604604
}
605+
606+
func KeepAlive(x interface{}) {
607+
// Unimplemented. Only required with SetFinalizer().
608+
}
609+
610+
func SetFinalizer(obj interface{}, finalizer interface{}) {
611+
// Unimplemented.
612+
}

0 commit comments

Comments
 (0)