aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/malloc.go
diff options
context:
space:
mode:
authorDavid Chase <drchase@google.com>2024-07-23 11:43:23 -0400
committerDavid Chase <drchase@google.com>2024-07-23 19:05:35 +0000
commitfc5073bc155545dde4856cccdfcbb31880d1eb66 (patch)
tree90aba60eda016a9392cd8ee0d55a154d0aa570e3 /src/runtime/malloc.go
parentf9eb3e3cd59c1cf38a98f2367c6c8dc180db9a95 (diff)
downloadgo-fc5073bc155545dde4856cccdfcbb31880d1eb66.tar.xz
runtime,internal: move runtime/internal/sys to internal/runtime/sys
Cleanup and friction reduction For #65355. Change-Id: Ia14c9dc584a529a35b97801dd3e95b9acc99a511 Reviewed-on: https://go-review.googlesource.com/c/go/+/600436 Reviewed-by: Keith Randall <khr@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/runtime/malloc.go')
-rw-r--r--src/runtime/malloc.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/malloc.go b/src/runtime/malloc.go
index cbb4f67ee8..b24ebec27d 100644
--- a/src/runtime/malloc.go
+++ b/src/runtime/malloc.go
@@ -105,7 +105,7 @@ import (
"internal/goos"
"internal/runtime/atomic"
"internal/runtime/math"
- "runtime/internal/sys"
+ "internal/runtime/sys"
"unsafe"
)
@@ -1555,7 +1555,7 @@ var persistentChunks *notInHeap
// sysStat must be non-nil.
//
// Consider marking persistentalloc'd types not in heap by embedding
-// runtime/internal/sys.NotInHeap.
+// internal/runtime/sys.NotInHeap.
func persistentalloc(size, align uintptr, sysStat *sysMemStat) unsafe.Pointer {
var p *notInHeap
systemstack(func() {
@@ -1697,7 +1697,7 @@ func (l *linearAlloc) alloc(size, align uintptr, sysStat *sysMemStat) unsafe.Poi
// like sysAlloc or persistentAlloc.
//
// In general, it's better to use real types which embed
-// runtime/internal/sys.NotInHeap, but this serves as a generic type
+// internal/runtime/sys.NotInHeap, but this serves as a generic type
// for situations where that isn't possible (like in the allocators).
//
// TODO: Use this as the return type of sysAlloc, persistentAlloc, etc?