mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: remove go prefix from a few routines
They are no longer needed now that C is gone. goatoi -> atoi gofuncname/funcname -> funcname/cfuncname goroundupsize -> already existing roundupsize Change-Id: I278bc33d279e1fdc5e8a2a04e961c4c1573b28c7 Reviewed-on: https://go-review.googlesource.com/2154 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Minux Ma <minux@golang.org>
This commit is contained in:
parent
ab0535ae3f
commit
0bb8fc6614
12 changed files with 35 additions and 49 deletions
|
|
@ -130,7 +130,7 @@ func testdefersizes() {
|
|||
if defersc >= uintptr(len(m)) {
|
||||
break
|
||||
}
|
||||
siz := goroundupsize(totaldefersize(i))
|
||||
siz := roundupsize(totaldefersize(i))
|
||||
if m[defersc] < 0 {
|
||||
m[defersc] = int32(siz)
|
||||
continue
|
||||
|
|
@ -173,7 +173,7 @@ func newdefer(siz int32) *_defer {
|
|||
}
|
||||
if d == nil {
|
||||
// Allocate new defer+args.
|
||||
total := goroundupsize(totaldefersize(uintptr(siz)))
|
||||
total := roundupsize(totaldefersize(uintptr(siz)))
|
||||
d = (*_defer)(mallocgc(total, deferType, 0))
|
||||
}
|
||||
d.siz = siz
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue