mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.typeparams] all: merge master (16e82be) into dev.typeparams
Merge List: + 2021-06-2116e82be454runtime: fix crash during VDSO calls on PowerPC + 2021-06-212e542c3c06runtime/pprof: deflake TestMorestack more + 2021-06-21ced0fdbad0doc/go1.17: note deprecation of 'go get' for installing commands + 2021-06-217a5e7047a4doc/go1.17: add Go 1.18 pre-announcements + 2021-06-2185a2e24afddoc/go1.17: add security-related release notes + 2021-06-211de332996cdoc/go1.17: document go/parser.SkipObjectResolution + 2021-06-21117ebe0f52cmd/go: do not require the module cache to exist for 'go mod edit' + 2021-06-20460900a7b5os/signal: test with a significantly longer fatal timeout + 2021-06-19b73cc4b02bdatabase/sql: do not rely on timeout for deadlock test + 2021-06-1886743e7d86image: add RGBA64Image interface + 2021-06-189401172166runtime: clarify Frames.Next documentation + 2021-06-1857aaa19aaeruntime: disable CPU profiling before removing the SIGPROF handler + 2021-06-186f22d2c682doc/go1.17: fix typo + 2021-06-1745f251ad6ccmd/pprof,runtime/pprof: disable test on more broken platforms + 2021-06-17ed834853adcmd/go: replace a TODO with an explanatory comment + 2021-06-174dede02550cmd/pprof: make ObjAddr a no-op + 2021-06-1797cee43c93testing: drop unusual characters from TempDir directory name + 2021-06-17b0355a3e72time: fix receiver for Time.IsDST method + 2021-06-17881b6ea7badoc/go1.17: fix redundant space + 2021-06-160e67ce3d28cmd/go: in lazy modules, add transitive imports for 'go get' arguments + 2021-06-166ea2af0890cmd/go: add a regression test for #45979 + 2021-06-16a294e4e798math/rand: mention half-open intervals explicitly + 2021-06-16a6a853f94ccmd/asm: restore supporting of *1 scaling on ARM64 Change-Id: Ifdcb817fd44b4fa9c477042b41da55d1d769b016
This commit is contained in:
commit
d626ba27bb
30 changed files with 967 additions and 96 deletions
|
|
@ -281,6 +281,8 @@ func setProcessCPUProfiler(hz int32) {
|
|||
it.it_value = it.it_interval
|
||||
setitimer(_ITIMER_PROF, &it, nil)
|
||||
} else {
|
||||
setitimer(_ITIMER_PROF, &itimerval{}, nil)
|
||||
|
||||
// If the Go signal handler should be disabled by default,
|
||||
// switch back to the signal handler that was installed
|
||||
// when we enabled profiling. We don't try to handle the case
|
||||
|
|
@ -304,8 +306,6 @@ func setProcessCPUProfiler(hz int32) {
|
|||
setsig(_SIGPROF, h)
|
||||
}
|
||||
}
|
||||
|
||||
setitimer(_ITIMER_PROF, &itimerval{}, nil)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -383,7 +383,7 @@ func preemptM(mp *m) {
|
|||
//go:nosplit
|
||||
func sigFetchG(c *sigctxt) *g {
|
||||
switch GOARCH {
|
||||
case "arm", "arm64":
|
||||
case "arm", "arm64", "ppc64", "ppc64le":
|
||||
if !iscgo && inVDSOPage(c.sigpc()) {
|
||||
// When using cgo, we save the g on TLS and load it from there
|
||||
// in sigtramp. Just use that.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue