diff options
author | Keith Randall <khr@golang.org> | 2014-07-30 09:01:52 -0700 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2014-07-30 09:01:52 -0700 |
commit | 698bdf4df3c249aa069717019bc15a608fe1fa2d (patch) | |
tree | 5e486901c6cbf7b0c49ddbea467b959e10eddb2d /test/live.go | |
parent | 7b6f6b0583f6563313aaa0d04ccf781d156eb014 (diff) | |
download | go-698bdf4df3c249aa069717019bc15a608fe1fa2d.tar.gz |
runtime: rewrite malloc in Go.
This change introduces gomallocgc, a Go clone of mallocgc.
Only a few uses have been moved over, so there are still
lots of uses from C. Many of these C uses will be moved
over to Go (e.g. in slice.goc), but probably not all.
What should remain of C's mallocgc is an open question.
LGTM=rsc, dvyukov
R=rsc, khr, dave, bradfitz, dvyukov
CC=golang-codereviews
https://codereview.appspot.com/108840046
Diffstat (limited to 'test/live.go')
-rw-r--r-- | test/live.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/live.go b/test/live.go index fd5279847..6ac1d6a46 100644 --- a/test/live.go +++ b/test/live.go @@ -397,9 +397,9 @@ func f27defer(b bool) { func f27go(b bool) { x := 0 if b { - go call27(func() {x++}) // ERROR "live at call to new: &x" "live at call to newproc: &x$" + go call27(func() {x++}) // ERROR "live at call to newobject: &x" "live at call to newproc: &x$" } - go call27(func() {x++}) // ERROR "live at call to new: &x" + go call27(func() {x++}) // ERROR "live at call to newobject: &x" println() } @@ -461,7 +461,7 @@ func f31(b1, b2, b3 bool) { g31("a") // ERROR "live at call to convT2E: autotmp_[0-9]+$" "live at call to g31: autotmp_[0-9]+$" } if b2 { - h31("b") // ERROR "live at call to new: autotmp_[0-9]+$" "live at call to convT2E: autotmp_[0-9]+ autotmp_[0-9]+$" "live at call to h31: autotmp_[0-9]+$" + h31("b") // ERROR "live at call to newobject: autotmp_[0-9]+$" "live at call to convT2E: autotmp_[0-9]+ autotmp_[0-9]+$" "live at call to h31: autotmp_[0-9]+$" } if b3 { panic("asdf") // ERROR "live at call to convT2E: autotmp_[0-9]+$" "live at call to panic: autotmp_[0-9]+$" @@ -583,13 +583,13 @@ func f39a() (x []int) { } func f39b() (x [10]*int) { - x = [10]*int{new(int)} // ERROR "live at call to new: x" + x = [10]*int{new(int)} // ERROR "live at call to newobject: x" println() // ERROR "live at call to printnl: x" return x } func f39c() (x [10]*int) { - x = [10]*int{new(int)} // ERROR "live at call to new: x" + x = [10]*int{new(int)} // ERROR "live at call to newobject: x" println() // ERROR "live at call to printnl: x" return } |