aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/proc.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/proc.go')
-rw-r--r--src/runtime/proc.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/runtime/proc.go b/src/runtime/proc.go
index 7f70100538..3b7d4f4d5d 100644
--- a/src/runtime/proc.go
+++ b/src/runtime/proc.go
@@ -10,7 +10,7 @@ import (
"internal/goarch"
"internal/goexperiment"
"internal/goos"
- "runtime/internal/atomic"
+ "internal/runtime/atomic"
"runtime/internal/sys"
"unsafe"
)
@@ -5269,22 +5269,22 @@ func sigprof(pc, sp, lr uintptr, gp *g, mp *m) {
}
// On mips{,le}/arm, 64bit atomics are emulated with spinlocks, in
- // runtime/internal/atomic. If SIGPROF arrives while the program is inside
+ // internal/runtime/atomic. If SIGPROF arrives while the program is inside
// the critical section, it creates a deadlock (when writing the sample).
// As a workaround, create a counter of SIGPROFs while in critical section
// to store the count, and pass it to sigprof.add() later when SIGPROF is
// received from somewhere else (with _LostSIGPROFDuringAtomic64 as pc).
if GOARCH == "mips" || GOARCH == "mipsle" || GOARCH == "arm" {
if f := findfunc(pc); f.valid() {
- if hasPrefix(funcname(f), "runtime/internal/atomic") {
+ if hasPrefix(funcname(f), "internal/runtime/atomic") {
cpuprof.lostAtomic++
return
}
}
if GOARCH == "arm" && goarm < 7 && GOOS == "linux" && pc&0xffff0000 == 0xffff0000 {
- // runtime/internal/atomic functions call into kernel
+ // internal/runtime/atomic functions call into kernel
// helpers on arm < 7. See
- // runtime/internal/atomic/sys_linux_arm.s.
+ // internal/runtime/atomic/sys_linux_arm.s.
cpuprof.lostAtomic++
return
}