We've been slowly moving packages from runtime/internal to
internal/runtime. For now, runtime/internal only has test packages.
It's a good chance to clean up the references to runtime/internal
in the toolchain.
For #65355.
Change-Id: Ie6f9091a44511d0db9946ea6de7a78d3afe9f063
GitHub-Last-Rev:
fad32e2e81d11508e734c3c3d3b0c1da583f89f5
GitHub-Pull-Request: golang/go#72137
Reviewed-on: https://go-review.googlesource.com/c/go/+/655515
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
t.registerTest("wasip1 host tests",
&goTest{
variant: "host",
- pkg: "runtime/internal/wasitest",
+ pkg: "internal/runtime/wasitest",
timeout: 1 * time.Minute,
runOnHost: true,
})
// $GOROOT/src/internal/coverage/pkid.go dealing with
// hard-coding of runtime package IDs.
cmode := cfg.BuildCoverMode
- if cfg.BuildRace && p.Standard && (p.ImportPath == "runtime" || strings.HasPrefix(p.ImportPath, "runtime/internal")) {
+ if cfg.BuildRace && p.Standard && p.ImportPath == "runtime" {
cmode = "regonly"
}
"internal/bytealg",
"internal/chacha8rand",
"internal/runtime/syscall",
- "runtime/internal/startlinetest",
+ "internal/runtime/startlinetest",
}
// LookupPkgSpecial returns special build properties for the given package path.
"unsafe":
return true
}
- return (strings.HasPrefix(pkg, "runtime/internal/") || strings.HasPrefix(pkg, "internal/runtime/")) &&
- !strings.HasSuffix(pkg, "_test")
+ return strings.HasPrefix(pkg, "internal/runtime/") && !strings.HasSuffix(pkg, "_test")
}
// Estimate the max size needed to hold any new trampolines created for this function. This
// socket extensions with the net package using net.FileConn/net.FileListener.
//
// Note that the creation of net.Conn and net.Listener values for TCP sockets
-// has an end-to-end test in src/runtime/internal/wasitest, here we are only
+// has an end-to-end test in src/internal/runtime/wasitest, here we are only
// verifying the code paths specific to UDP, and error handling for invalid use
// of the functions.
atomic.StorepNoWB(noescape(ptr), new)
}
-// atomic_storePointer is the implementation of runtime/internal/UnsafePointer.Store
+// atomic_storePointer is the implementation of internal/runtime/atomic.UnsafePointer.Store
// (like StoreNoWB but with the write barrier).
//
//go:nosplit
atomicstorep(unsafe.Pointer(ptr), new)
}
-// atomic_casPointer is the implementation of runtime/internal/UnsafePointer.CompareAndSwap
+// atomic_casPointer is the implementation of internal/runtime/atomic.UnsafePointer.CompareAndSwap
// (like CompareAndSwapNoWB but with the write barrier).
//
//go:nosplit
throw(msg)
}
// TODO: is this redundant? How could we be in malloc
- // but not in the runtime? runtime/internal/*, maybe?
+ // but not in the runtime? internal/runtime/*, maybe?
gp := getg()
if gp != nil && gp.m != nil && gp.m.mallocing != 0 {
throw(msg)
if strings.Contains(l, "internal/runtime/") {
t.Errorf("Sample got %s, want no runtime frames", l)
}
- if strings.Contains(l, "runtime/internal/") {
- t.Errorf("Sample got %s, want no runtime frames", l)
- }
if strings.Contains(l, "mapassign") { // in case mapassign moves to a package not matching above paths.
t.Errorf("Sample got %s, want no mapassign frames", l)
}
u, uf := newInlineUnwinder(f, pc)
name := u.srcFunc(uf).name()
if stringslite.HasPrefix(name, "runtime.") ||
- stringslite.HasPrefix(name, "runtime/internal/") ||
stringslite.HasPrefix(name, "internal/runtime/") ||
stringslite.HasPrefix(name, "reflect.") {
// For now we never async preempt the runtime or
package runtime_test
import (
- "runtime/internal/startlinetest"
+ "internal/runtime/startlinetest"
"testing"
)