diff options
| author | Keith Randall <khr@golang.org> | 2014-12-28 23:16:32 -0800 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2014-12-29 15:18:29 +0000 |
| commit | 0bb8fc66142bae953c0374a292eeab12440af3cb (patch) | |
| tree | c65ed92ac5add7fa4b8fe09d37f717938f087e83 /src/runtime/malloc.go | |
| parent | ab0535ae3fb45ba734d47542cc4845f27f708d1b (diff) | |
| download | go-0bb8fc66142bae953c0374a292eeab12440af3cb.tar.xz | |
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>
Diffstat (limited to 'src/runtime/malloc.go')
| -rw-r--r-- | src/runtime/malloc.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/runtime/malloc.go b/src/runtime/malloc.go index d6353d95fd..bb23b80c93 100644 --- a/src/runtime/malloc.go +++ b/src/runtime/malloc.go @@ -415,20 +415,6 @@ func rawmem(size uintptr) unsafe.Pointer { return mallocgc(size, nil, flagNoScan|flagNoZero) } -// round size up to next size class -func goroundupsize(size uintptr) uintptr { - if size < maxSmallSize { - if size <= 1024-8 { - return uintptr(class_to_size[size_to_class8[(size+7)>>3]]) - } - return uintptr(class_to_size[size_to_class128[(size-1024+127)>>7]]) - } - if size+pageSize < size { - return size - } - return (size + pageSize - 1) &^ pageMask -} - func profilealloc(mp *m, x unsafe.Pointer, size uintptr) { c := mp.mcache rate := MemProfileRate |
