summaryrefslogtreecommitdiff
path: root/src/runtime/panic.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-09-09 01:08:34 -0400
committerRuss Cox <rsc@golang.org>2014-09-09 01:08:34 -0400
commit58580c80576c0281a1af5dbc1592d19810ee7d4b (patch)
tree7f4e97a8bdc88e990ca283269fab5c6ddb689bcd /src/runtime/panic.go
parent882621154ee94c92fe22ab7377df1b77cedd822a (diff)
downloadgo-58580c80576c0281a1af5dbc1592d19810ee7d4b.tar.gz
runtime: merge mallocgc, gomallocgc
I assumed they were the same when I wrote cgocallback.go earlier today. Merge them to eliminate confusion. I can't tell what gomallocgc did before with a nil type but without FlagNoScan. I created a call like that in cgocallback.go this morning, translating from a C file. It was supposed to do what the C version did, namely treat the block conservatively. Now it will. LGTM=khr R=khr CC=golang-codereviews https://codereview.appspot.com/141810043
Diffstat (limited to 'src/runtime/panic.go')
-rw-r--r--src/runtime/panic.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/panic.go b/src/runtime/panic.go
index 52ab65464..ac0a7541e 100644
--- a/src/runtime/panic.go
+++ b/src/runtime/panic.go
@@ -147,7 +147,7 @@ func newdefer(siz int32) *_defer {
if d == nil {
// deferpool is empty or just a big defer
total := goroundupsize(totaldefersize(uintptr(siz)))
- d = (*_defer)(gomallocgc(total, conservative, 0))
+ d = (*_defer)(mallocgc(total, conservative, 0))
}
d.siz = siz
d.special = false