Commit f84cbd09 authored by Dmitriy Vyukov's avatar Dmitriy Vyukov

runtime: fix test for new closure representation

I've hit it several times already.
Currently it crashes with nil deref.

R=golang-dev, daniel.morsing, r
CC=golang-dev
https://golang.org/cl/10317045
parent 8a4efed6
......@@ -49,7 +49,7 @@ func TestStackSplit(t *testing.T) {
sp, guard := f()
bottom := guard - StackGuard
if sp < bottom+StackLimit {
fun := FuncForPC(*(*uintptr)(unsafe.Pointer(&f)))
fun := FuncForPC(**(**uintptr)(unsafe.Pointer(&f)))
t.Errorf("after %s: sp=%#x < limit=%#x (guard=%#x, bottom=%#x)",
fun.Name(), sp, bottom+StackLimit, guard, bottom)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment