Fixes #9339
Change-Id: I22faf2593cb73f42612c2c2bfe38de001fb2746b
Reviewed-on: https://go-review.googlesource.com/1630
Reviewed-by: Andrew Gerrand <adg@golang.org>
}
}
-
type Obj struct {
- x, y int
+ x, y int
}
func objfin(x *Obj) {
- println("finalized", x)
+ println("finalized", x)
}
func TestWriteHeapDumpFinalizers(t *testing.T) {
next *finblock
cnt int32
_ int32
- fin [(_FinBlockSize-2*ptrSize-2*4)/unsafe.Sizeof(finalizer{})]finalizer
+ fin [(_FinBlockSize - 2*ptrSize - 2*4) / unsafe.Sizeof(finalizer{})]finalizer
}
// Information from the compiler about the layout of stack frames.