diff options
author | Russ Cox <rsc@golang.org> | 2010-02-03 16:31:34 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-02-03 16:31:34 -0800 |
commit | 3732daa8e7c635ba306dd923a4342650524320df (patch) | |
tree | 31d454f4c7a1d0189ddbd9b1e771c8716655dc72 /test/gc.go | |
parent | 9c681e46bfdf7a2745d2df35412592e8c13e0fce (diff) | |
download | golang-3732daa8e7c635ba306dd923a4342650524320df.tar.gz |
finalizers; merge package malloc into package runtime
R=r, cw
CC=golang-dev
http://codereview.appspot.com/198085
Diffstat (limited to 'test/gc.go')
-rw-r--r-- | test/gc.go | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/test/gc.go b/test/gc.go index 0b1dd6374..864d05c39 100644 --- a/test/gc.go +++ b/test/gc.go @@ -6,21 +6,19 @@ package main -import "malloc" +import "runtime" func mk2() { - b := new([10000]byte); - _ = b; -// println(b, "stored at", &b); + b := new([10000]byte) + _ = b + // println(b, "stored at", &b); } -func mk1() { - mk2(); -} +func mk1() { mk2() } func main() { for i := 0; i < 10; i++ { - mk1(); - malloc.GC(); + mk1() + runtime.GC() } } |