Browse Source

Add dummy runtime.SetFinalizer()

Requirement for the os package. The os package can't be compiled yet,
though.
pull/6/head
Ayke van Laethem 6 years ago
parent
commit
cd2a9d99a1
No known key found for this signature in database GPG Key ID: E97FF5335DFDFDED
  1. 4
      src/runtime/gc.go
  2. 4
      src/runtime/runtime_unix.go

4
src/runtime/gc.go

@ -36,3 +36,7 @@ func GC() {
func KeepAlive(x interface{}) {
// Unimplemented. Only required with SetFinalizer().
}
func SetFinalizer(obj interface{}, finalizer interface{}) {
// Unimplemented.
}

4
src/runtime/runtime_unix.go

@ -64,3 +64,7 @@ func GC() {
func KeepAlive(x interface{}) {
// Unimplemented. Only required with SetFinalizer().
}
func SetFinalizer(obj interface{}, finalizer interface{}) {
// Unimplemented.
}

Loading…
Cancel
Save