diff options
| author | Russ Cox <rsc@golang.org> | 2014-09-09 01:08:34 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2014-09-09 01:08:34 -0400 |
| commit | bffb0590c1e1125830377165eb98bf1b73bb016e (patch) | |
| tree | b8a7f8e9ef3b9bfdb53c2c7aea4ca6d95193d46b /src/runtime/panic.go | |
| parent | 0f99a91bb56dd01dfd4e5ce4344e6006e3463ade (diff) | |
| download | go-bffb0590c1e1125830377165eb98bf1b73bb016e.tar.xz | |
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://golang.org/cl/141810043
Diffstat (limited to 'src/runtime/panic.go')
| -rw-r--r-- | src/runtime/panic.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/panic.go b/src/runtime/panic.go index 52ab654646..ac0a7541e8 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 |
