Commit ee3a1ff6 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

all: update old comments referencing *.goc files

Change-Id: Ibf05e55ffe3bb454809cd3450b790e44061511c7
Reviewed-on: https://go-review.googlesource.com/2890Reviewed-by: 's avatarAlan Donovan <adonovan@google.com>
parent 25ece4ae
...@@ -21,4 +21,4 @@ func Equal(a, b []byte) bool // ../runtime/asm_$GOARCH.s ...@@ -21,4 +21,4 @@ func Equal(a, b []byte) bool // ../runtime/asm_$GOARCH.s
// Compare returns an integer comparing two byte slices lexicographically. // Compare returns an integer comparing two byte slices lexicographically.
// The result will be 0 if a==b, -1 if a < b, and +1 if a > b. // The result will be 0 if a==b, -1 if a < b, and +1 if a > b.
// A nil argument is equivalent to an empty slice. // A nil argument is equivalent to an empty slice.
func Compare(a, b []byte) int // ../runtime/noasm_arm.goc or ../runtime/asm_{386,amd64}.s func Compare(a, b []byte) int // ../runtime/noasm.go or ../runtime/asm_{386,amd64}.s
...@@ -104,7 +104,7 @@ const ( ...@@ -104,7 +104,7 @@ const (
// Tunable constants. // Tunable constants.
_MaxSmallSize = 32 << 10 _MaxSmallSize = 32 << 10
// Tiny allocator parameters, see "Tiny allocator" comment in malloc.goc. // Tiny allocator parameters, see "Tiny allocator" comment in malloc.go.
_TinySize = 16 _TinySize = 16
_TinySizeClass = 2 _TinySizeClass = 2
...@@ -322,7 +322,7 @@ type mcache struct { ...@@ -322,7 +322,7 @@ type mcache struct {
next_sample int32 // trigger heap sample after allocating this many bytes next_sample int32 // trigger heap sample after allocating this many bytes
local_cachealloc intptr // bytes allocated (or freed) from cache since last lock of heap local_cachealloc intptr // bytes allocated (or freed) from cache since last lock of heap
// Allocator cache for tiny objects w/o pointers. // Allocator cache for tiny objects w/o pointers.
// See "Tiny allocator" comment in malloc.goc. // See "Tiny allocator" comment in malloc.go.
tiny unsafe.Pointer tiny unsafe.Pointer
tinyoffset uintptr tinyoffset uintptr
local_tinyallocs uintptr // number of tiny allocs not counted in other stats local_tinyallocs uintptr // number of tiny allocs not counted in other stats
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// Routines that are implemented in assembly in asm_{amd64,386}.s // Routines that are implemented in assembly in asm_{amd64,386}.s
// but are implemented in Go for arm.
// +build arm ppc64 ppc64le // +build arm ppc64 ppc64le
......
...@@ -44,7 +44,7 @@ func write1(fd uintptr, buf uintptr, nbyte uintptr) (n uintptr, err Errno) ...@@ -44,7 +44,7 @@ func write1(fd uintptr, buf uintptr, nbyte uintptr) (n uintptr, err Errno)
// no rescheduling, no malloc calls, and no new stack segments. // no rescheduling, no malloc calls, and no new stack segments.
// //
// We call hand-crafted syscalls, implemented in // We call hand-crafted syscalls, implemented in
// ../runtime/syscall_solaris.goc, rather than generated libc wrappers // ../runtime/syscall_solaris.go, rather than generated libc wrappers
// because we need to avoid lazy-loading the functions (might malloc, // because we need to avoid lazy-loading the functions (might malloc,
// split the stack, or acquire mutexes). We can't call RawSyscall // split the stack, or acquire mutexes). We can't call RawSyscall
// because it's not safe even for BSD-subsystem calls. // because it's not safe even for BSD-subsystem calls.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment