go/src/runtime
Michael Anthony Knyszek 6f13d0bfe4 runtime: fix usage of stale "now" value for netpolling Ms
Currently pidleget gets passed "now" from before the M goes into
netpoll, resulting in incorrect accounting of idle CPU time.
lastpoll is also stored with a stale "now": the mistake was added in the
same CL it was added for pidleget.

Recompute "now" after returning from netpoll.

Also, start tracking idle time on js/wasm at all.

Credit to Rhys Hiltner for the test case.

Fixes #60276.

Change-Id: I5dd677471f74c915dfcf3d01621430876c3ff307
Reviewed-on: https://go-review.googlesource.com/c/go/+/496183
Reviewed-by: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
2023-05-23 19:24:33 +00:00
..
asan
cgo runtime/cgo: store M for C-created thread in pthread key 2023-05-17 21:53:11 +00:00
coverage runtime/coverage: add support for "auxiliary" meta-data files 2023-05-23 11:37:21 +00:00
debug runtime: manage huge pages explicitly 2023-04-19 14:30:00 +00:00
internal runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
metrics runtime/metrics: add /gc/scan/total:bytes 2023-05-23 19:21:39 +00:00
msan runtime: add msan support on freebsd/amd64 2022-10-14 12:48:03 +00:00
pprof runtime, runtime/pprof: record instantiated symbol name in CPU profile 2023-05-05 19:53:39 +00:00
race runtime: symbolize wrappers as a last resort in race tracebacks 2023-05-23 19:14:02 +00:00
testdata runtime/cgo: store M for C-created thread in pthread key 2023-05-17 21:53:11 +00:00
trace runtime: add remaining wasip1 files 2023-04-06 17:48:24 +00:00
HACKING.md
Makefile
abi_test.go
alg.go runtime: move per-type types to internal/abi 2023-05-11 13:45:40 +00:00
align_runtime_test.go
align_test.go runtime: correct typos 2023-02-08 14:52:12 +00:00
arena.go runtime: move per-type types to internal/abi 2023-05-11 13:45:40 +00:00
arena_test.go arena: add experimental arena package 2022-10-12 20:23:36 +00:00
asan.go
asan0.go
asan_amd64.s runtime: correct typos 2023-02-08 14:52:12 +00:00
asan_arm64.s
asan_ppc64le.s
asan_riscv64.s
asm.s cmd/link: linker portion of dead map removal 2023-02-06 20:56:47 +00:00
asm_386.s runtime/cgo: store M for C-created thread in pthread key 2023-05-17 21:53:11 +00:00
asm_amd64.h
asm_amd64.s runtime: rename getcallerfp to getfp 2023-05-22 10:04:13 +00:00
asm_arm.s runtime/cgo: store M for C-created thread in pthread key 2023-05-17 21:53:11 +00:00
asm_arm64.s runtime: rename getcallerfp to getfp 2023-05-22 10:04:13 +00:00
asm_loong64.s runtime/cgo: store M for C-created thread in pthread key 2023-05-17 21:53:11 +00:00
asm_mips64x.s runtime/cgo: store M for C-created thread in pthread key 2023-05-17 21:53:11 +00:00
asm_mipsx.s runtime/cgo: store M for C-created thread in pthread key 2023-05-17 21:53:11 +00:00
asm_ppc64x.h runtime: consolidate function descriptor definitions on PPC64 2023-04-18 22:20:51 +00:00
asm_ppc64x.s runtime/cgo: store M for C-created thread in pthread key 2023-05-17 21:53:11 +00:00
asm_riscv64.s runtime/cgo: store M for C-created thread in pthread key 2023-05-17 21:53:11 +00:00
asm_s390x.s runtime/cgo: store M for C-created thread in pthread key 2023-05-17 21:53:11 +00:00
asm_wasm.s all: add wasip1 asm and link logic 2023-04-05 19:28:25 +00:00
atomic_arm64.s
atomic_loong64.s
atomic_mips64x.s
atomic_mipsx.s
atomic_pointer.go runtime: remove the restriction that write barrier ptrs come in pairs 2023-02-17 22:19:26 +00:00
atomic_ppc64x.s
atomic_riscv64.s
auxv_none.go
callers_test.go runtime: remove unused skip arg from fpTracebackPCs 2023-05-12 13:51:15 +00:00
cgo.go runtime/cgo: store M for C-created thread in pthread key 2023-05-17 21:53:11 +00:00
cgo_mmap.go runtime: add msan support on freebsd/amd64 2022-10-14 12:48:03 +00:00
cgo_ppc64x.go
cgo_sigaction.go
cgocall.go runtime: implement Pinner API for object pinning 2023-05-19 14:59:14 +00:00
cgocallback.go
cgocheck.go runtime: implement Pinner API for object pinning 2023-05-19 14:59:14 +00:00
chan.go runtime: replace raw traceEv with traceBlockReason in gopark 2023-05-19 20:47:25 +00:00
chan_test.go
chanbarrier_test.go
checkptr.go internal/abi: refactor (basic) type struct into one definition 2023-05-05 14:59:28 +00:00
checkptr_test.go
closure_test.go
compiler.go
complex.go
complex_test.go
conv_wasm_test.go
covercounter.go runtime/coverage: runtime routines to emit coverage data 2022-09-28 11:48:10 +00:00
covermeta.go runtime/coverage: runtime routines to emit coverage data 2022-09-28 11:48:10 +00:00
cpuflags.go
cpuflags_amd64.go
cpuflags_arm64.go internal/cpu: add a detection for Neoverse(N2, V2) cores 2023-04-25 14:08:20 +00:00
cpuprof.go
cputicks.go runtime: implement cputicks with the stable counter on loong64 2023-03-10 12:47:42 +00:00
crash_cgo_test.go runtime: treat TestRaceSignal as flaky on Darwin 2023-05-22 19:03:04 +00:00
crash_test.go runtime: skip TestG0StackOverflow on ios 2023-04-21 21:03:17 +00:00
crash_unix_test.go runtime: implement traceback iterator 2023-03-10 17:59:29 +00:00
create_file_nounix.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
create_file_unix.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
debug.go runtime: emit STW events for all pauses, not just those for the GC 2023-05-19 17:06:45 +00:00
debug_test.go
debugcall.go runtime: replace raw traceEv with traceBlockReason in gopark 2023-05-19 20:47:25 +00:00
debuglog.go internal/abi: refactor (basic) type struct into one definition 2023-05-05 14:59:28 +00:00
debuglog_off.go
debuglog_on.go
debuglog_test.go runtime: avoid unsafe.{Slice,String} in debuglog 2022-10-18 16:59:26 +00:00
defer_test.go
defs1_linux.go
defs1_netbsd_386.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
defs1_netbsd_amd64.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
defs1_netbsd_arm.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
defs1_netbsd_arm64.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
defs1_solaris_amd64.go runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
defs2_linux.go runtime: move epoll syscalls to runtime/internal/syscall 2022-10-07 18:28:11 +00:00
defs3_linux.go
defs_aix.go runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
defs_aix_ppc64.go runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
defs_arm_linux.go
defs_darwin.go runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
defs_darwin_amd64.go runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
defs_darwin_arm64.go runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
defs_dragonfly.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
defs_dragonfly_amd64.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
defs_freebsd.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
defs_freebsd_386.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
defs_freebsd_amd64.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
defs_freebsd_arm.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
defs_freebsd_arm64.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
defs_freebsd_riscv64.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
defs_illumos_amd64.go
defs_linux.go runtime: move epoll syscalls to runtime/internal/syscall 2022-10-07 18:28:11 +00:00
defs_linux_386.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
defs_linux_amd64.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
defs_linux_arm.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
defs_linux_arm64.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
defs_linux_loong64.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
defs_linux_mips64x.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
defs_linux_mipsx.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
defs_linux_ppc64.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
defs_linux_ppc64le.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
defs_linux_riscv64.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
defs_linux_s390x.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
defs_netbsd.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
defs_netbsd_386.go
defs_netbsd_amd64.go
defs_netbsd_arm.go
defs_openbsd.go runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
defs_openbsd_386.go runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
defs_openbsd_amd64.go runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
defs_openbsd_arm.go runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
defs_openbsd_arm64.go runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
defs_openbsd_mips64.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
defs_plan9_386.go
defs_plan9_amd64.go
defs_plan9_arm.go
defs_solaris.go runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
defs_solaris_amd64.go
defs_windows.go runtime: support GOTRACEBACK=wer on Windows 2023-04-10 18:52:58 +00:00
defs_windows_386.go cmd/link: generate .pdata PE section 2023-05-02 07:42:50 +00:00
defs_windows_amd64.go cmd/link: generate .pdata PE section 2023-05-02 07:42:50 +00:00
defs_windows_arm.go cmd/link: generate .pdata PE section 2023-05-02 07:42:50 +00:00
defs_windows_arm64.go cmd/link: generate .pdata PE section 2023-05-02 07:42:50 +00:00
duff_386.s
duff_amd64.s runtime: use explicit NOFRAME on windows/amd64 2023-01-24 19:29:51 +00:00
duff_arm.s
duff_arm64.s
duff_loong64.s
duff_mips64x.s
duff_ppc64x.s
duff_riscv64.s
duff_s390x.s
ehooks_test.go runtime: change exit hooks test to use RaceDetectorSupported 2022-10-04 18:52:38 +00:00
env_plan9.go runtime: fix a few function names on comments 2022-10-26 02:39:39 +00:00
env_posix.go internal/godebug: remove dependency on os 2022-10-18 14:49:44 +00:00
env_test.go
error.go runtime: redefine _type to abi.Type; add rtype for methods. 2023-05-11 04:50:30 +00:00
example_test.go
exithook.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
export_aix_test.go runtime: consistently define fcntl 2023-05-17 04:58:07 +00:00
export_arm_test.go
export_darwin_test.go runtime: consistently define fcntl 2023-05-17 04:58:07 +00:00
export_debug_amd64_test.go
export_debug_arm64_test.go
export_debug_test.go runtime: move per-type types to internal/abi 2023-05-11 13:45:40 +00:00
export_debuglog_test.go runtime: emit STW events for all pauses, not just those for the GC 2023-05-19 17:06:45 +00:00
export_linux_test.go runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
export_mmap_test.go
export_pipe2_test.go
export_pipe_test.go
export_test.go runtime: rename getcallerfp to getfp 2023-05-22 10:04:13 +00:00
export_unix_test.go runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
export_windows_test.go runtime: fix TestSehUnwind 2023-05-22 11:50:24 +00:00
extern.go runtime: add eager scavenging details to GODEBUG=scavtrace=1 2023-05-19 13:38:43 +00:00
fastlog2.go
fastlog2_test.go
fastlog2table.go
float.go runtime: fix a few function names on comments 2022-10-26 02:39:39 +00:00
float_test.go
funcdata.h internal/abi, runtime, cmd: merge PCDATA_* and FUNCDATA_* consts into internal/abi 2023-04-21 19:28:49 +00:00
gc_test.go all: use time.Since instead of time.Now().Sub 2022-10-02 02:28:27 +00:00
gcinfo_test.go
go_tls.h
hash32.go
hash64.go
hash_test.go hash/maphash: weaken avalanche test a bit 2023-05-17 14:45:20 +00:00
heapdump.go runtime: emit STW events for all pauses, not just those for the GC 2023-05-19 17:06:45 +00:00
histogram.go runtime: shrink time histogram buckets 2022-09-16 16:32:01 +00:00
histogram_test.go runtime: shrink time histogram buckets 2022-09-16 16:32:01 +00:00
iface.go runtime: move per-type types to internal/abi 2023-05-11 13:45:40 +00:00
iface_test.go
import_test.go runtime: create an API for unwinding inlined frames 2023-03-10 17:18:27 +00:00
importx_test.go runtime: create an API for unwinding inlined frames 2023-03-10 17:18:27 +00:00
lfstack.go runtime: change lfstack support to taggedPointer 2023-04-18 20:22:50 +00:00
lfstack_test.go runtime: fix conflict between lfstack and checkptr 2022-11-17 23:12:04 +00:00
libfuzzer.go cmd/link, runtime: use a different section for Go libfuzzer counters 2022-12-23 01:12:02 +00:00
libfuzzer_amd64.s runtime: fix misaligned SP for libfuzzer entry 2023-05-10 04:57:07 +00:00
libfuzzer_arm64.s
lock_futex.go all: add missing periods in comments 2022-11-18 17:59:44 +00:00
lock_js.go runtime: fix usage of stale "now" value for netpolling Ms 2023-05-23 19:24:33 +00:00
lock_sema.go all: add missing periods in comments 2022-11-18 17:59:44 +00:00
lock_wasip1.go runtime: add remaining wasip1 files 2023-04-06 17:48:24 +00:00
lockrank.go runtime: add partial lock order between mspanSpecial and gcBitsArenas 2023-05-23 18:00:50 +00:00
lockrank_off.go runtime: add raceFiniLock to lock ranking 2023-04-24 21:37:06 +00:00
lockrank_on.go runtime: add raceFiniLock to lock ranking 2023-04-24 21:37:06 +00:00
lockrank_test.go
malloc.go internal/abi: refactor (basic) type struct into one definition 2023-05-05 14:59:28 +00:00
malloc_test.go runtime: make Malloc benchmarks actually benchmark malloc 2022-11-10 17:33:31 +00:00
map.go maps,runtime: improve maps.Keys 2023-05-19 15:54:43 +00:00
map_benchmark_test.go
map_fast32.go runtime: move per-type types to internal/abi 2023-05-11 13:45:40 +00:00
map_fast64.go runtime: move per-type types to internal/abi 2023-05-11 13:45:40 +00:00
map_faststr.go runtime: move per-type types to internal/abi 2023-05-11 13:45:40 +00:00
map_test.go internal/abi,runtime: refactor map constants into one place 2023-01-23 15:51:32 +00:00
mbarrier.go runtime: redefine _type to abi.Type; add rtype for methods. 2023-05-11 04:50:30 +00:00
mbitmap.go runtime: implement Pinner API for object pinning 2023-05-19 14:59:14 +00:00
mcache.go runtime: add safe arena support to the runtime 2022-10-12 20:23:30 +00:00
mcentral.go runtime: replace trace.enabled with traceEnabled 2023-05-11 21:27:08 +00:00
mcheckmark.go
mem.go runtime: add sysNoHugePage 2023-04-05 21:43:42 +00:00
mem_aix.go runtime: add sysNoHugePage 2023-04-05 21:43:42 +00:00
mem_bsd.go runtime: add sysNoHugePage 2023-04-05 21:43:42 +00:00
mem_darwin.go runtime: add sysNoHugePage 2023-04-05 21:43:42 +00:00
mem_js.go runtime: add remaining wasip1 files 2023-04-06 17:48:24 +00:00
mem_linux.go runtime: fall back on mmap if madvise is unsupported 2023-05-23 15:45:55 +00:00
mem_plan9.go runtime: reuse freed memory blocks on wasm 2023-03-21 02:45:06 +00:00
mem_sbrk.go runtime: add sysNoHugePage 2023-04-05 21:43:42 +00:00
mem_wasip1.go runtime: add remaining wasip1 files 2023-04-06 17:48:24 +00:00
mem_wasm.go runtime: add remaining wasip1 files 2023-04-06 17:48:24 +00:00
mem_windows.go runtime: add sysNoHugePage 2023-04-05 21:43:42 +00:00
memclr_386.s
memclr_amd64.s
memclr_arm.s
memclr_arm64.s
memclr_loong64.s internal/bytealg, runtime: align some loong64 asm loops to 16-byte boundaries 2023-04-07 20:21:15 +00:00
memclr_mips64x.s
memclr_mipsx.s
memclr_plan9_386.s
memclr_plan9_amd64.s
memclr_ppc64x.s runtime: improve ppc64x memclr for tail bytes 2023-05-16 17:08:59 +00:00
memclr_riscv64.s all: delete riscv64 non-register ABI fallback path 2022-10-26 00:52:05 +00:00
memclr_s390x.s
memclr_wasm.s runtime: add wasm bulk memory operations 2022-10-27 10:37:01 +00:00
memmove_386.s
memmove_amd64.s
memmove_arm.s
memmove_arm64.s
memmove_linux_amd64_test.go runtime: simplify code using unsafe.{Slice,String} 2022-09-07 01:48:30 +00:00
memmove_loong64.s internal/bytealg, runtime: align some loong64 asm loops to 16-byte boundaries 2023-04-07 20:21:15 +00:00
memmove_mips64x.s
memmove_mipsx.s
memmove_plan9_386.s
memmove_plan9_amd64.s
memmove_ppc64x.s cmd/internal/obj/ppc64: modify PCALIGN to ensure alignment 2023-04-21 16:47:45 +00:00
memmove_riscv64.s runtime: optimise memmove on riscv64 2022-11-18 15:33:16 +00:00
memmove_s390x.s
memmove_test.go cmd/compile: inline known-size memclrNoHeapPointers calls 2023-01-31 18:11:24 +00:00
memmove_wasm.s runtime: add wasm bulk memory operations 2022-10-27 10:37:01 +00:00
metrics.go runtime/metrics: add /gc/scan/total:bytes 2023-05-23 19:21:39 +00:00
metrics_test.go runtime: fix usage of stale "now" value for netpolling Ms 2023-05-23 19:24:33 +00:00
mfinal.go runtime: replace raw traceEv with traceBlockReason in gopark 2023-05-19 20:47:25 +00:00
mfinal_test.go runtime: remove arbitrary GOARCH constraints in finalizer tests 2023-01-19 20:45:58 +00:00
mfixalloc.go all: fix some problematic comments 2023-03-13 16:49:45 +00:00
mgc.go runtime: replace raw traceEv with traceBlockReason in gopark 2023-05-19 20:47:25 +00:00
mgclimit.go runtime: flush idle time to sched.idleTime on limiter event consumption 2023-05-19 16:24:53 +00:00
mgclimit_test.go
mgcmark.go runtime: replace raw traceEv with traceBlockReason in gopark 2023-05-19 20:47:25 +00:00
mgcpacer.go runtime: make the memory limit heap goal headroom proportional 2023-05-19 13:53:21 +00:00
mgcpacer_test.go runtime: make the memory limit heap goal headroom proportional 2023-05-19 13:53:21 +00:00
mgcscavenge.go runtime: replace raw traceEv with traceBlockReason in gopark 2023-05-19 20:47:25 +00:00
mgcscavenge_test.go runtime: manage huge pages explicitly 2023-04-19 14:30:00 +00:00
mgcstack.go
mgcsweep.go runtime: improve Pinner with gcBits 2023-05-19 23:21:57 +00:00
mgcwork.go all: add missing periods in comments 2022-11-18 17:59:44 +00:00
mheap.go runtime: improve Pinner with gcBits 2023-05-19 23:21:57 +00:00
minmax.go cmd/compile: implement min/max builtins 2023-05-23 18:15:22 +00:00
minmax_test.go cmd/compile: implement min/max builtins 2023-05-23 18:15:22 +00:00
mkduff.go runtime: use explicit NOFRAME on windows/amd64 2023-01-24 19:29:51 +00:00
mkfastlog2table.go
mklockrank.go runtime: add partial lock order between mspanSpecial and gcBitsArenas 2023-05-23 18:00:50 +00:00
mkpreempt.go runtime: save and restore fcc registers in async preempt on loong64 2023-03-22 19:29:43 +00:00
mksizeclasses.go runtime: implement Pinner API for object pinning 2023-05-19 14:59:14 +00:00
mmap.go runtime: add msan support on freebsd/amd64 2022-10-14 12:48:03 +00:00
mpagealloc.go runtime: add eager scavenging details to GODEBUG=scavtrace=1 2023-05-19 13:38:43 +00:00
mpagealloc_32bit.go runtime: bring back minHeapIdx in scavenge index 2023-04-20 20:08:25 +00:00
mpagealloc_64bit.go runtime: fix comment typo in page allocator 2023-05-02 00:07:07 +00:00
mpagealloc_test.go
mpagecache.go runtime: manage huge pages explicitly 2023-04-19 14:30:00 +00:00
mpagecache_test.go
mpallocbits.go runtime: correct typos 2023-02-08 14:52:12 +00:00
mpallocbits_test.go
mprof.go runtime: emit STW events for all pauses, not just those for the GC 2023-05-19 17:06:45 +00:00
mranges.go runtime: add safe arena support to the runtime 2022-10-12 20:23:30 +00:00
mranges_test.go
msan.go
msan0.go
msan_amd64.s
msan_arm64.s
msize.go
mspanset.go all: fix some problematic comments 2023-03-13 16:49:45 +00:00
mstats.go runtime: emit STW events for all pauses, not just those for the GC 2023-05-19 17:06:45 +00:00
mwbbuf.go cmd/compile: batch write barrier calls 2023-02-24 00:21:13 +00:00
nbpipe_pipe.go
nbpipe_pipe2.go
nbpipe_pipe_test.go
nbpipe_test.go runtime: change fcntl to return two values 2023-05-20 20:32:54 +00:00
net_plan9.go
netpoll.go runtime: replace raw traceEv with traceBlockReason in gopark 2023-05-19 20:47:25 +00:00
netpoll_aix.go runtime: add and use pollDesc fd sequence field 2023-04-18 20:22:52 +00:00
netpoll_epoll.go runtime: add and use pollDesc fd sequence field 2023-04-18 20:22:52 +00:00
netpoll_fake.go runtime: add remaining wasip1 files 2023-04-06 17:48:24 +00:00
netpoll_kqueue.go runtime: add and use pollDesc fd sequence field 2023-04-18 20:22:52 +00:00
netpoll_os_test.go
netpoll_solaris.go runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
netpoll_stub.go
netpoll_windows.go runtime: add and use pollDesc fd sequence field 2023-04-18 20:22:52 +00:00
nonwindows_stub.go runtime: support GOTRACEBACK=wer on Windows 2023-04-10 18:52:58 +00:00
norace_linux_test.go
norace_test.go
numcpu_freebsd_test.go
os2_aix.go runtime: call _exit, not exit, on AIX and Solaris 2023-04-24 05:12:17 +00:00
os2_freebsd.go
os2_openbsd.go
os2_plan9.go
os2_solaris.go
os3_plan9.go
os3_solaris.go runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
os_aix.go runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
os_android.go
os_darwin.go cmd/link, runtime: Apple libc atfork workaround take 3 2023-01-10 20:34:22 +00:00
os_darwin_arm64.go
os_dragonfly.go runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
os_freebsd.go runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
os_freebsd2.go
os_freebsd_amd64.go
os_freebsd_arm.go
os_freebsd_arm64.go
os_freebsd_noauxv.go
os_freebsd_riscv64.go runtime: add support for freebsd/riscv64 2022-09-28 03:17:13 +00:00
os_illumos.go
os_js.go runtime: add remaining wasip1 files 2023-04-06 17:48:24 +00:00
os_linux.go runtime: change fcntl to return two values 2023-05-20 20:32:54 +00:00
os_linux_arm.go
os_linux_arm64.go
os_linux_be64.go runtime: treat SI_TKILL like SI_USER on Linux 2022-09-21 01:56:24 +00:00
os_linux_generic.go runtime: treat SI_TKILL like SI_USER on Linux 2022-09-21 01:56:24 +00:00
os_linux_loong64.go runtime: implement cputicks with the stable counter on loong64 2023-03-10 12:47:42 +00:00
os_linux_mips64x.go runtime: treat SI_TKILL like SI_USER on Linux 2022-09-21 01:56:24 +00:00
os_linux_mipsx.go runtime: treat SI_TKILL like SI_USER on Linux 2022-09-21 01:56:24 +00:00
os_linux_noauxv.go
os_linux_novdso.go
os_linux_ppc64x.go
os_linux_riscv64.go
os_linux_s390x.go
os_linux_x86.go
os_netbsd.go runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
os_netbsd_386.go
os_netbsd_amd64.go
os_netbsd_arm.go
os_netbsd_arm64.go
os_nonopenbsd.go
os_only_solaris.go
os_openbsd.go runtime: fix a few function names on comments 2022-10-26 02:39:39 +00:00
os_openbsd_arm.go
os_openbsd_arm64.go
os_openbsd_libc.go runtime: retry thread creation on EAGAIN 2022-11-10 20:44:45 +00:00
os_openbsd_mips64.go
os_openbsd_syscall.go runtime: retry thread creation on EAGAIN 2022-11-10 20:44:45 +00:00
os_openbsd_syscall1.go
os_openbsd_syscall2.go runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
os_plan9.go os, runtime: remove unused implementations of os.sigpipe 2023-05-12 21:33:26 +00:00
os_plan9_arm.go
os_solaris.go runtime: consistently define fcntl 2023-05-17 04:58:07 +00:00
os_unix.go runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
os_unix_nonlinux.go runtime: treat SI_TKILL like SI_USER on Linux 2022-09-21 01:56:24 +00:00
os_wasip1.go wasm: restrict supported types in go:wasmimport function signatures 2023-04-13 18:43:20 +00:00
os_wasm.go runtime: rename getcallerfp to getfp 2023-05-22 10:04:13 +00:00
os_windows.go os, runtime: remove unused implementations of os.sigpipe 2023-05-12 21:33:26 +00:00
os_windows_arm.go
os_windows_arm64.go
pagetrace_off.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
pagetrace_on.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
panic.go runtime: redefine _type to abi.Type; add rtype for methods. 2023-05-11 04:50:30 +00:00
panic32.go
panic_test.go
panicnil_test.go internal/godebug: export non-default-behavior counters in runtime/metrics 2023-01-19 22:26:43 +00:00
pinner.go runtime: let Pinner preallocate a reusable ref array 2023-05-23 15:33:48 +00:00
pinner_test.go runtime: implement Pinner API for object pinning 2023-05-19 14:59:14 +00:00
plugin.go runtime: move per-type types to internal/abi 2023-05-11 13:45:40 +00:00
preempt.go runtime: tidy _Stack* constant naming 2023-04-21 19:29:00 +00:00
preempt_386.s
preempt_amd64.s
preempt_arm.s
preempt_arm64.s
preempt_loong64.s runtime: save and restore fcc registers in async preempt on loong64 2023-03-22 19:29:43 +00:00
preempt_mips64x.s
preempt_mipsx.s
preempt_nonwindows.go
preempt_ppc64x.s
preempt_riscv64.s
preempt_s390x.s
preempt_wasm.s
print.go all: fix typos in go file comments 2023-01-20 03:27:26 +00:00
proc.go runtime: fix usage of stale "now" value for netpolling Ms 2023-05-23 19:24:33 +00:00
proc_runtime_test.go
proc_test.go runtime: record parent goroutine ID, and print it in stack traces 2023-02-21 17:35:22 +00:00
profbuf.go
profbuf_test.go
proflabel.go
race.go runtime: symbolize wrappers as a last resort in race tracebacks 2023-05-23 19:14:02 +00:00
race0.go
race_amd64.s runtime: use explicit NOFRAME on windows/amd64 2023-01-24 19:29:51 +00:00
race_arm64.s
race_ppc64le.s runtime,cmd/internal/obj/ppc64: cleanup ppc64le runtime.racecallbackthunk 2023-04-11 13:17:25 +00:00
race_s390x.s
rand_test.go
rdebug.go
retry.go runtime: retry thread creation on EAGAIN 2022-11-10 20:44:45 +00:00
rt0_aix_ppc64.s runtime: consolidate function descriptor definitions on PPC64 2023-04-18 22:20:51 +00:00
rt0_android_386.s
rt0_android_amd64.s
rt0_android_arm.s
rt0_android_arm64.s
rt0_darwin_amd64.s
rt0_darwin_arm64.s
rt0_dragonfly_amd64.s
rt0_freebsd_386.s
rt0_freebsd_amd64.s
rt0_freebsd_arm.s
rt0_freebsd_arm64.s
rt0_freebsd_riscv64.s runtime: add support for freebsd/riscv64 2022-09-28 03:17:13 +00:00
rt0_illumos_amd64.s
rt0_ios_amd64.s
rt0_ios_arm64.s
rt0_js_wasm.s all: add wasip1 asm and link logic 2023-04-05 19:28:25 +00:00
rt0_linux_386.s
rt0_linux_amd64.s
rt0_linux_arm.s
rt0_linux_arm64.s
rt0_linux_loong64.s runtime: add support for --buildmode=c-shared on loong64 2023-04-10 15:50:43 +00:00
rt0_linux_mips64x.s
rt0_linux_mipsx.s
rt0_linux_ppc64.s runtime: consolidate function descriptor definitions on PPC64 2023-04-18 22:20:51 +00:00
rt0_linux_ppc64le.s runtime: cleanup ppc64le/linux library startup code 2023-04-12 20:52:19 +00:00
rt0_linux_riscv64.s
rt0_linux_s390x.s
rt0_netbsd_386.s
rt0_netbsd_amd64.s
rt0_netbsd_arm.s
rt0_netbsd_arm64.s
rt0_openbsd_386.s
rt0_openbsd_amd64.s
rt0_openbsd_arm.s
rt0_openbsd_arm64.s
rt0_openbsd_mips64.s
rt0_plan9_386.s
rt0_plan9_amd64.s
rt0_plan9_arm.s
rt0_solaris_amd64.s
rt0_wasip1_wasm.s all: add wasip1 asm and link logic 2023-04-05 19:28:25 +00:00
rt0_windows_386.s
rt0_windows_amd64.s runtime: remove unnecessary NOFRAME flags on windows 2023-03-01 14:25:13 +00:00
rt0_windows_arm.s
rt0_windows_arm64.s runtime: remove unnecessary NOFRAME flags on windows 2023-03-01 14:25:13 +00:00
runtime-gdb.py all: fix a lot of comments 2023-05-10 12:59:20 +00:00
runtime-gdb_test.go runtime: skip TestGdbPanic on Windows 2023-03-03 15:35:48 +00:00
runtime-gdb_unix_test.go runtime: skip TestGdbCoreSignalBacktrace on arches other than 386/amd64 2023-03-27 19:33:06 +00:00
runtime-lldb_test.go
runtime-seh_windows_test.go runtime: fix TestSehUnwind 2023-05-22 11:50:24 +00:00
runtime.go runtime: expose auxv for use by x/sys/cpu 2023-02-16 19:34:38 +00:00
runtime1.go runtime: move per-type types to internal/abi 2023-05-11 13:45:40 +00:00
runtime2.go runtime: replace raw traceEv with traceBlockReason in gopark 2023-05-19 20:47:25 +00:00
runtime_boring.go
runtime_linux_test.go runtime: move epoll syscalls to runtime/internal/syscall 2022-10-07 18:28:11 +00:00
runtime_mmap_test.go
runtime_test.go runtime: add remaining wasip1 files 2023-04-06 17:48:24 +00:00
runtime_unix_test.go
rwmutex.go
rwmutex_test.go
select.go runtime: replace raw traceEv with traceBlockReason in gopark 2023-05-19 20:47:25 +00:00
sema.go runtime: replace raw traceEv with traceBlockReason in gopark 2023-05-19 20:47:25 +00:00
sema_test.go
semasleep_test.go runtime: add remaining wasip1 files 2023-04-06 17:48:24 +00:00
sigaction.go
signal_386.go
signal_aix_ppc64.go
signal_amd64.go
signal_arm.go
signal_arm64.go runtime: save frame pointer to the stack in signal handlers for arm64 2023-04-05 18:16:00 +00:00
signal_darwin.go
signal_darwin_amd64.go
signal_darwin_arm64.go
signal_dragonfly.go
signal_dragonfly_amd64.go
signal_freebsd.go
signal_freebsd_386.go
signal_freebsd_amd64.go
signal_freebsd_arm.go
signal_freebsd_arm64.go
signal_freebsd_riscv64.go runtime: add support for freebsd/riscv64 2022-09-28 03:17:13 +00:00
signal_linux_386.go
signal_linux_amd64.go
signal_linux_arm.go
signal_linux_arm64.go
signal_linux_loong64.go
signal_linux_mips64x.go
signal_linux_mipsx.go
signal_linux_ppc64x.go
signal_linux_riscv64.go
signal_linux_s390x.go
signal_loong64.go cmd/asm, runtime: remove the RSB register from loong64 2023-03-21 06:51:28 +00:00
signal_mips64x.go
signal_mipsx.go
signal_netbsd.go
signal_netbsd_386.go
signal_netbsd_amd64.go runtime: let (*sigctxt).r9 return the correct register value on netbsd 2023-03-21 18:51:53 +00:00
signal_netbsd_arm.go
signal_netbsd_arm64.go
signal_openbsd.go
signal_openbsd_386.go
signal_openbsd_amd64.go
signal_openbsd_arm.go
signal_openbsd_arm64.go
signal_openbsd_mips64.go
signal_plan9.go
signal_ppc64x.go
signal_riscv64.go runtime: add support for freebsd/riscv64 2022-09-28 03:17:13 +00:00
signal_solaris.go
signal_solaris_amd64.go
signal_unix.go runtime/cgo: store M for C-created thread in pthread key 2023-05-17 21:53:11 +00:00
signal_windows.go runtime: tidy _Stack* constant naming 2023-04-21 19:29:00 +00:00
signal_windows_test.go runtime: fallback to TEB arbitrary pointer when TLS slots are full 2023-04-25 15:37:00 +00:00
sigqueue.go
sigqueue_note.go
sigqueue_plan9.go
sigtab_aix.go
sigtab_linux_generic.go
sigtab_linux_mipsx.go
sizeclasses.go runtime: implement Pinner API for object pinning 2023-05-19 14:59:14 +00:00
sizeof_test.go runtime: capture per-g trace state in a type 2023-05-17 14:45:40 +00:00
slice.go internal/abi: refactor (basic) type struct into one definition 2023-05-05 14:59:28 +00:00
slice_test.go
softfloat64.go
softfloat64_test.go
stack.go runtime: remove systemstack logic from adjustframe 2023-05-03 14:34:50 +00:00
stack_test.go runtime: don't run TestStackGrowth in parallel with other tests 2023-05-04 20:09:34 +00:00
start_line_amd64_test.go runtime/internal/startlinetest: work around shared buildmode linking issue 2022-12-22 04:34:33 +00:00
start_line_test.go all: gofmt 2023-03-20 22:54:22 +00:00
stkframe.go internal/abi: refactor (basic) type struct into one definition 2023-05-05 14:59:28 +00:00
string.go runtime: create an API for unwinding inlined frames 2023-03-10 17:18:27 +00:00
string_test.go cmd/gc: test temp string comparison with all ops 2022-12-13 14:05:23 +00:00
stubs.go runtime/cgo: store M for C-created thread in pthread key 2023-05-17 21:53:11 +00:00
stubs2.go runtime: add remaining wasip1 files 2023-04-06 17:48:24 +00:00
stubs3.go runtime: add remaining wasip1 files 2023-04-06 17:48:24 +00:00
stubs_386.go runtime: rename getcallerfp to getfp 2023-05-22 10:04:13 +00:00
stubs_amd64.go runtime: rename getcallerfp to getfp 2023-05-22 10:04:13 +00:00
stubs_arm.go runtime: rename getcallerfp to getfp 2023-05-22 10:04:13 +00:00
stubs_arm64.go runtime: rename getcallerfp to getfp 2023-05-22 10:04:13 +00:00
stubs_linux.go
stubs_loong64.go runtime: rename getcallerfp to getfp 2023-05-22 10:04:13 +00:00
stubs_mips64x.go runtime: rename getcallerfp to getfp 2023-05-22 10:04:13 +00:00
stubs_mipsx.go runtime: rename getcallerfp to getfp 2023-05-22 10:04:13 +00:00
stubs_nonlinux.go
stubs_ppc64.go all: add missing periods in comments 2022-11-18 17:59:44 +00:00
stubs_ppc64x.go runtime: rename getcallerfp to getfp 2023-05-22 10:04:13 +00:00
stubs_riscv64.go runtime: rename getcallerfp to getfp 2023-05-22 10:04:13 +00:00
stubs_s390x.go runtime: rename getcallerfp to getfp 2023-05-22 10:04:13 +00:00
symtab.go runtime, runtime/pprof: record instantiated symbol name in CPU profile 2023-05-05 19:53:39 +00:00
symtab_test.go
symtabinl.go internal/abi, runtime, cmd: merge PCDATA_* and FUNCDATA_* consts into internal/abi 2023-04-21 19:28:49 +00:00
symtabinl_test.go internal/abi, runtime, cmd: merge funcID_* consts into internal/abi 2023-04-21 19:28:44 +00:00
sys_aix_ppc64.s runtime: tidy _Stack* constant naming 2023-04-21 19:29:00 +00:00
sys_arm.go
sys_arm64.go
sys_darwin.go runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
sys_darwin_amd64.s runtime: change fcntl to return two values 2023-05-20 20:32:54 +00:00
sys_darwin_arm64.go
sys_darwin_arm64.s runtime: change fcntl to return two values 2023-05-20 20:32:54 +00:00
sys_dragonfly_amd64.s runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
sys_freebsd_386.s runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
sys_freebsd_amd64.s runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
sys_freebsd_arm.s runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
sys_freebsd_arm64.s runtime: remove some unused constants from assembler code 2023-05-22 17:11:18 +00:00
sys_freebsd_riscv64.s runtime: remove some unused constants from assembler code 2023-05-22 17:11:18 +00:00
sys_libc.go
sys_linux_386.s runtime: add "sigaction" to sigreturn symbol name 2023-03-24 18:53:44 +00:00
sys_linux_amd64.s runtime: add "sigaction" to sigreturn symbol name 2023-03-24 18:53:44 +00:00
sys_linux_arm.s runtime: add "sigaction" to sigreturn symbol name 2023-03-24 18:53:44 +00:00
sys_linux_arm64.s runtime: add "sigaction" to sigreturn symbol name 2023-03-24 18:53:44 +00:00
sys_linux_loong64.s runtime: save/fetch g register during VDSO on linux/loong64 2023-05-11 23:41:03 +00:00
sys_linux_mips64x.s runtime: always keep global reference to mp until mexit completes 2022-10-18 20:57:24 +00:00
sys_linux_mipsx.s runtime: always keep global reference to mp until mexit completes 2022-10-18 20:57:24 +00:00
sys_linux_ppc64x.s runtime: consolidate function descriptor definitions on PPC64 2023-04-18 22:20:51 +00:00
sys_linux_riscv64.s runtime: always keep global reference to mp until mexit completes 2022-10-18 20:57:24 +00:00
sys_linux_s390x.s runtime: add "sigaction" to sigreturn symbol name 2023-03-24 18:53:44 +00:00
sys_loong64.go
sys_mips64x.go
sys_mipsx.go
sys_netbsd_386.s runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
sys_netbsd_amd64.s runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
sys_netbsd_arm.s runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
sys_netbsd_arm64.s runtime: remove some unused constants from assembler code 2023-05-22 17:11:18 +00:00
sys_nonppc64x.go
sys_openbsd.go
sys_openbsd1.go
sys_openbsd2.go runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
sys_openbsd3.go
sys_openbsd_386.s runtime: change fcntl to return two values 2023-05-20 20:32:54 +00:00
sys_openbsd_amd64.s runtime: change fcntl to return two values 2023-05-20 20:32:54 +00:00
sys_openbsd_arm.s runtime: change fcntl to return two values 2023-05-20 20:32:54 +00:00
sys_openbsd_arm64.s runtime: change fcntl to return two values 2023-05-20 20:32:54 +00:00
sys_openbsd_mips64.s runtime: consolidate on a single closeonexec definition 2023-05-20 21:27:51 +00:00
sys_plan9_386.s
sys_plan9_amd64.s runtime: use explicit NOFRAME on plan9/amd64 2023-03-01 16:41:22 +00:00
sys_plan9_arm.s
sys_ppc64x.go
sys_riscv64.go
sys_s390x.go
sys_solaris_amd64.s runtime: tidy _Stack* constant naming 2023-04-21 19:29:00 +00:00
sys_wasm.go all: implement wasmimport directive 2023-03-02 05:28:55 +00:00
sys_wasm.s runtime: add remaining wasip1 files 2023-04-06 17:48:24 +00:00
sys_windows_386.s runtime: fallback to TEB arbitrary pointer when TLS slots are full 2023-04-25 15:37:00 +00:00
sys_windows_amd64.s runtime: fallback to TEB arbitrary pointer when TLS slots are full 2023-04-25 15:37:00 +00:00
sys_windows_arm.s runtime: implement high resolution timer on windows arm/arm64 2023-03-13 14:20:41 +00:00
sys_windows_arm64.s runtime: fallback to TEB arbitrary pointer when TLS slots are full 2023-04-25 15:37:00 +00:00
sys_x86.go
syscall2_solaris.go syscall: restore original NOFILE rlimit in child process 2023-03-15 17:21:30 +00:00
syscall_aix.go syscall: restore original NOFILE rlimit in child process 2023-03-15 17:21:30 +00:00
syscall_solaris.go syscall: restore original NOFILE rlimit in child process 2023-03-15 17:21:30 +00:00
syscall_unix_test.go runtime: add page tracer 2022-11-18 03:45:30 +00:00
syscall_windows.go runtime: move per-type types to internal/abi 2023-05-11 13:45:40 +00:00
syscall_windows_test.go runtime: remove TestCrashExitCode 2023-05-08 16:57:33 +00:00
tagptr.go runtime: change lfstack support to taggedPointer 2023-04-18 20:22:50 +00:00
tagptr_32bit.go runtime: change lfstack support to taggedPointer 2023-04-18 20:22:50 +00:00
tagptr_64bit.go runtime: change lfstack support to taggedPointer 2023-04-18 20:22:50 +00:00
textflag.h runtime: remove implicit NOFRAME heuristic support 2023-03-01 17:28:41 +00:00
time.go runtime: replace raw traceEv with traceBlockReason in gopark 2023-05-19 20:47:25 +00:00
time_fake.go
time_linux_amd64.s
time_nofake.go
time_test.go cmd/link/internal/ld: move more of mustLinkExternal into internal/platform 2023-03-02 16:34:21 +00:00
time_windows.h
time_windows_386.s
time_windows_amd64.s
time_windows_arm.s runtime: remove unnecessary NOFRAME flags on windows 2023-03-01 14:25:13 +00:00
time_windows_arm64.s runtime: remove unnecessary NOFRAME flags on windows 2023-03-01 14:25:13 +00:00
timeasm.go
timestub.go
timestub2.go runtime: add remaining wasip1 files 2023-04-06 17:48:24 +00:00
tls_arm.s
tls_arm64.h
tls_arm64.s
tls_loong64.s
tls_mips64x.s
tls_mipsx.s runtime: correct typos 2023-02-08 14:52:12 +00:00
tls_ppc64x.s
tls_riscv64.s
tls_s390x.s
tls_stub.go
tls_windows_amd64.go
trace.go runtime: rename getcallerfp to getfp 2023-05-22 10:04:13 +00:00
trace_cgo_test.go runtime/trace: use regular unwinding for cgo callbacks 2023-03-30 19:18:12 +00:00
traceback.go cmd/link, runtime: include full symbol name for generic functions in runtime table 2023-05-05 19:53:20 +00:00
traceback_test.go cmd/link, runtime: include full symbol name for generic functions in runtime table 2023-05-05 19:53:20 +00:00
type.go runtime: move per-type types to internal/abi 2023-05-11 13:45:40 +00:00
typekind.go internal/abi: refactor (basic) type struct into one definition 2023-05-05 14:59:28 +00:00
unsafe.go internal/abi: refactor (basic) type struct into one definition 2023-05-05 14:59:28 +00:00
utf8.go
vdso_elf32.go
vdso_elf64.go
vdso_freebsd.go
vdso_freebsd_arm.go
vdso_freebsd_arm64.go
vdso_freebsd_riscv64.go runtime: Add vdso on freebsd/riscv64 2022-10-20 15:14:38 +00:00
vdso_freebsd_x86.go
vdso_in_none.go
vdso_linux.go
vdso_linux_386.go
vdso_linux_amd64.go
vdso_linux_arm.go
vdso_linux_arm64.go
vdso_linux_loong64.go
vdso_linux_mips64x.go
vdso_linux_ppc64x.go
vdso_linux_riscv64.go
vdso_linux_s390x.go
vlop_386.s
vlop_arm.s
vlop_arm_test.go
vlrt.go
wincallback.go runtime: use explicit NOFRAME on windows/amd64 2023-01-24 19:29:51 +00:00
write_err.go
write_err_android.go
zcallback_windows.go
zcallback_windows.s runtime: use explicit NOFRAME on windows/amd64 2023-01-24 19:29:51 +00:00
zcallback_windows_arm.s
zcallback_windows_arm64.s