X7ROOT File Manager
Current Path:
/opt/golang/1.17.2/src/runtime
opt
/
golang
/
1.17.2
/
src
/
runtime
/
馃搧
..
馃搫
HACKING.md
(13.07 KB)
馃搫
Makefile
(178 B)
馃搫
abi_test.go
(2.88 KB)
馃搫
alg.go
(9.45 KB)
馃搫
asm.s
(715 B)
馃搫
asm_386.s
(40.27 KB)
馃搫
asm_amd64.s
(56.93 KB)
馃搫
asm_arm.s
(30.23 KB)
馃搫
asm_arm64.s
(33 KB)
馃搫
asm_mips64x.s
(22.43 KB)
馃搫
asm_mipsx.s
(24.39 KB)
馃搫
asm_ppc64x.h
(1023 B)
馃搫
asm_ppc64x.s
(29.16 KB)
馃搫
asm_riscv64.s
(22.43 KB)
馃搫
asm_s390x.s
(26.04 KB)
馃搫
asm_wasm.s
(9.8 KB)
馃搫
atomic_arm64.s
(259 B)
馃搫
atomic_mips64x.s
(326 B)
馃搫
atomic_mipsx.s
(284 B)
馃搫
atomic_pointer.go
(2.62 KB)
馃搫
atomic_ppc64x.s
(461 B)
馃搫
atomic_riscv64.s
(275 B)
馃搫
auxv_none.go
(360 B)
馃搫
callers_test.go
(7.72 KB)
馃搧
cgo
馃搫
cgo.go
(2.01 KB)
馃搫
cgo_mmap.go
(2.42 KB)
馃搫
cgo_ppc64x.go
(439 B)
馃搫
cgo_sigaction.go
(3.17 KB)
馃搫
cgocall.go
(18.88 KB)
馃搫
cgocallback.go
(317 B)
馃搫
cgocheck.go
(6.83 KB)
馃搫
chan.go
(23.54 KB)
馃搫
chan_test.go
(23.01 KB)
馃搫
chanbarrier_test.go
(1.4 KB)
馃搫
checkptr.go
(3.29 KB)
馃搫
checkptr_test.go
(1.62 KB)
馃搫
closure_test.go
(937 B)
馃搫
compiler.go
(413 B)
馃搫
complex.go
(1.59 KB)
馃搫
complex_test.go
(1.05 KB)
馃搫
conv_wasm_test.go
(2.96 KB)
馃搫
cpuflags.go
(800 B)
馃搫
cpuflags_amd64.go
(533 B)
馃搫
cpuflags_arm64.go
(334 B)
馃搫
cpuprof.go
(6.92 KB)
馃搫
cputicks.go
(497 B)
馃搫
crash_cgo_test.go
(16.17 KB)
馃搫
crash_nonunix_test.go
(429 B)
馃搫
crash_test.go
(20.96 KB)
馃搫
crash_unix_test.go
(8.52 KB)
馃搧
debug
馃搫
debug.go
(1.63 KB)
馃搫
debug_test.go
(6.82 KB)
馃搫
debugcall.go
(6.21 KB)
馃搫
debuglog.go
(17.49 KB)
馃搫
debuglog_off.go
(377 B)
馃搫
debuglog_on.go
(1.11 KB)
馃搫
debuglog_test.go
(4.56 KB)
馃搫
defer_test.go
(10.32 KB)
馃搫
defs1_linux.go
(862 B)
馃搫
defs1_netbsd_386.go
(2.84 KB)
馃搫
defs1_netbsd_amd64.go
(3.07 KB)
馃搫
defs1_netbsd_arm.go
(2.96 KB)
馃搫
defs1_netbsd_arm64.go
(3.18 KB)
馃搫
defs1_solaris_amd64.go
(4.02 KB)
馃搫
defs2_linux.go
(3.52 KB)
馃搫
defs3_linux.go
(1.11 KB)
馃搫
defs_aix.go
(4.18 KB)
馃搫
defs_aix_ppc64.go
(3.63 KB)
馃搫
defs_arm_linux.go
(2.69 KB)
馃搫
defs_darwin.go
(3.79 KB)
馃搫
defs_darwin_amd64.go
(6.07 KB)
馃搫
defs_darwin_arm64.go
(3.89 KB)
馃搫
defs_dragonfly.go
(2.63 KB)
馃搫
defs_dragonfly_amd64.go
(3.31 KB)
馃搫
defs_freebsd.go
(3.86 KB)
馃搫
defs_freebsd_386.go
(4.38 KB)
馃搫
defs_freebsd_amd64.go
(4.65 KB)
馃搫
defs_freebsd_arm.go
(3.71 KB)
馃搫
defs_freebsd_arm64.go
(4.03 KB)
馃搫
defs_illumos_amd64.go
(285 B)
馃搫
defs_linux.go
(3.05 KB)
馃搫
defs_linux_386.go
(3.77 KB)
馃搫
defs_linux_amd64.go
(4.28 KB)
馃搫
defs_linux_arm.go
(3.45 KB)
馃搫
defs_linux_arm64.go
(3.21 KB)
馃搫
defs_linux_mips64x.go
(3.24 KB)
馃搫
defs_linux_mipsx.go
(3.21 KB)
馃搫
defs_linux_ppc64.go
(3.28 KB)
馃搫
defs_linux_ppc64le.go
(3.28 KB)
馃搫
defs_linux_riscv64.go
(3.27 KB)
馃搫
defs_linux_s390x.go
(2.76 KB)
馃搫
defs_netbsd.go
(2.76 KB)
馃搫
defs_netbsd_386.go
(872 B)
馃搫
defs_netbsd_amd64.go
(1.03 KB)
馃搫
defs_netbsd_arm.go
(781 B)
馃搫
defs_openbsd.go
(3.1 KB)
馃搫
defs_openbsd_386.go
(2.89 KB)
馃搫
defs_openbsd_amd64.go
(3.09 KB)
馃搫
defs_openbsd_arm.go
(3 KB)
馃搫
defs_openbsd_arm64.go
(2.76 KB)
馃搫
defs_openbsd_mips64.go
(2.66 KB)
馃搫
defs_plan9_386.go
(1.63 KB)
馃搫
defs_plan9_amd64.go
(1.82 KB)
馃搫
defs_plan9_arm.go
(1.73 KB)
馃搫
defs_solaris.go
(3.35 KB)
馃搫
defs_solaris_amd64.go
(1021 B)
馃搫
defs_windows.go
(2.09 KB)
馃搫
defs_windows_386.go
(1.98 KB)
馃搫
defs_windows_amd64.go
(2.71 KB)
馃搫
defs_windows_arm.go
(2.11 KB)
馃搫
defs_windows_arm64.go
(2.63 KB)
馃搫
duff_386.s
(8.24 KB)
馃搫
duff_amd64.s
(5.62 KB)
馃搫
duff_arm.s
(7.11 KB)
馃搫
duff_arm64.s
(5.25 KB)
馃搫
duff_mips64x.s
(11.31 KB)
馃搫
duff_ppc64x.s
(2.43 KB)
馃搫
duff_riscv64.s
(11.38 KB)
馃搫
duff_s390x.s
(507 B)
馃搫
env_plan9.go
(2.99 KB)
馃搫
env_posix.go
(1.95 KB)
馃搫
env_test.go
(1.16 KB)
馃搫
error.go
(9.23 KB)
馃搫
example_test.go
(1.55 KB)
馃搫
export_aix_test.go
(204 B)
馃搫
export_arm_test.go
(226 B)
馃搫
export_darwin_test.go
(351 B)
馃搫
export_debug_regabiargs_off_test.go
(416 B)
馃搫
export_debug_regabiargs_on_test.go
(1.39 KB)
馃搫
export_debug_test.go
(5.86 KB)
馃搫
export_debuglog_test.go
(1.27 KB)
馃搫
export_futex_test.go
(570 B)
馃搫
export_linux_test.go
(429 B)
馃搫
export_mmap_test.go
(571 B)
馃搫
export_pipe2_test.go
(436 B)
馃搫
export_pipe_test.go
(240 B)
馃搫
export_solaris_test.go
(282 B)
馃搫
export_test.go
(30.12 KB)
馃搫
export_unix_test.go
(2.35 KB)
馃搫
export_windows_test.go
(652 B)
馃搫
extern.go
(12.58 KB)
馃搫
fastlog2.go
(1.22 KB)
馃搫
fastlog2_test.go
(784 B)
馃搫
fastlog2table.go
(904 B)
馃搫
float.go
(1.35 KB)
馃搫
funcdata.h
(2.47 KB)
馃搫
futex_test.go
(2.15 KB)
馃搫
gc_test.go
(19.21 KB)
馃搫
gcinfo_test.go
(5.69 KB)
馃搫
go_tls.h
(366 B)
馃搫
hash32.go
(1.61 KB)
馃搫
hash64.go
(2.01 KB)
馃搫
hash_test.go
(16.5 KB)
馃搫
heapdump.go
(17.74 KB)
馃搫
histogram.go
(6.42 KB)
馃搫
histogram_test.go
(1.85 KB)
馃搫
iface.go
(16.13 KB)
馃搫
iface_test.go
(7.51 KB)
馃搧
internal
馃搫
lfstack.go
(1.77 KB)
馃搫
lfstack_32bit.go
(562 B)
馃搫
lfstack_64bit.go
(2.24 KB)
馃搫
lfstack_test.go
(2.78 KB)
馃搫
libfuzzer.go
(2.6 KB)
馃搫
libfuzzer_amd64.s
(961 B)
馃搫
libfuzzer_arm64.s
(772 B)
馃搫
lock_futex.go
(5.22 KB)
馃搫
lock_js.go
(5.81 KB)
馃搫
lock_sema.go
(6.8 KB)
馃搫
lockrank.go
(11.62 KB)
馃搫
lockrank_off.go
(1.17 KB)
馃搫
lockrank_on.go
(9.84 KB)
馃搫
lockrank_test.go
(1.15 KB)
馃搫
malloc.go
(52.33 KB)
馃搫
malloc_test.go
(10.83 KB)
馃搫
map.go
(42.47 KB)
馃搫
map_benchmark_test.go
(10.51 KB)
馃搫
map_fast32.go
(12.63 KB)
馃搫
map_fast64.go
(12.82 KB)
馃搫
map_faststr.go
(14.15 KB)
馃搫
map_test.go
(27.52 KB)
馃搫
mbarrier.go
(12.2 KB)
馃搫
mbitmap.go
(65.27 KB)
馃搫
mcache.go
(9.68 KB)
馃搫
mcentral.go
(7.8 KB)
馃搫
mcheckmark.go
(2.81 KB)
馃搫
mem_aix.go
(1.94 KB)
馃搫
mem_bsd.go
(2.12 KB)
馃搫
mem_darwin.go
(1.88 KB)
馃搫
mem_js.go
(2.35 KB)
馃搫
mem_linux.go
(5.59 KB)
馃搫
mem_plan9.go
(4.53 KB)
馃搫
mem_windows.go
(3.87 KB)
馃搫
memclr_386.s
(2.42 KB)
馃搫
memclr_amd64.s
(3.89 KB)
馃搫
memclr_arm.s
(2.6 KB)
馃搫
memclr_arm64.s
(3.65 KB)
馃搫
memclr_mips64x.s
(1.75 KB)
馃搫
memclr_mipsx.s
(1.35 KB)
馃搫
memclr_plan9_386.s
(983 B)
馃搫
memclr_plan9_amd64.s
(511 B)
馃搫
memclr_ppc64x.s
(4.31 KB)
馃搫
memclr_riscv64.s
(926 B)
馃搫
memclr_s390x.s
(1.96 KB)
馃搫
memclr_wasm.s
(622 B)
馃搫
memmove_386.s
(4.46 KB)
馃搫
memmove_amd64.s
(12.66 KB)
馃搫
memmove_arm.s
(5.9 KB)
馃搫
memmove_arm64.s
(6 KB)
馃搫
memmove_linux_amd64_test.go
(1.6 KB)
馃搫
memmove_mips64x.s
(1.85 KB)
馃搫
memmove_mipsx.s
(4.42 KB)
馃搫
memmove_plan9_386.s
(3.06 KB)
馃搫
memmove_plan9_amd64.s
(3.04 KB)
馃搫
memmove_ppc64x.s
(4.11 KB)
馃搫
memmove_riscv64.s
(1.81 KB)
馃搫
memmove_s390x.s
(2.92 KB)
馃搫
memmove_test.go
(12.04 KB)
馃搫
memmove_wasm.s
(1.74 KB)
馃搧
metrics
馃搫
metrics.go
(17.69 KB)
馃搫
metrics_test.go
(12.48 KB)
馃搫
mfinal.go
(15.76 KB)
馃搫
mfinal_test.go
(5.85 KB)
馃搫
mfixalloc.go
(2.73 KB)
馃搫
mgc.go
(55.18 KB)
馃搫
mgcmark.go
(45.54 KB)
馃搫
mgcpacer.go
(29.56 KB)
馃搫
mgcscavenge.go
(35.05 KB)
馃搫
mgcscavenge_test.go
(12.74 KB)
馃搫
mgcstack.go
(10.58 KB)
馃搫
mgcsweep.go
(23.56 KB)
馃搫
mgcwork.go
(12.82 KB)
馃搫
mheap.go
(66.31 KB)
馃搫
mkduff.go
(7.19 KB)
馃搫
mkfastlog2table.go
(1.32 KB)
馃搫
mkpreempt.go
(14.17 KB)
馃搫
mksizeclasses.go
(9.31 KB)
馃搫
mmap.go
(990 B)
馃搫
mpagealloc.go
(36.77 KB)
馃搫
mpagealloc_32bit.go
(3.81 KB)
馃搫
mpagealloc_64bit.go
(6.65 KB)
馃搫
mpagealloc_test.go
(32.38 KB)
馃搫
mpagecache.go
(5.28 KB)
馃搫
mpagecache_test.go
(9.93 KB)
馃搫
mpallocbits.go
(12.01 KB)
馃搫
mpallocbits_test.go
(13.69 KB)
馃搫
mprof.go
(25.82 KB)
馃搫
mranges.go
(11.84 KB)
馃搫
mranges_test.go
(5.68 KB)
馃搧
msan
馃搫
msan.go
(1.51 KB)
馃搫
msan0.go
(741 B)
馃搫
msan_amd64.s
(2.32 KB)
馃搫
msan_arm64.s
(2.01 KB)
馃搫
msize.go
(777 B)
馃搫
mspanset.go
(12.2 KB)
馃搫
mstats.go
(30.65 KB)
馃搫
mwbbuf.go
(9.3 KB)
馃搫
nbpipe_fcntl_libc_test.go
(499 B)
馃搫
nbpipe_fcntl_unix_test.go
(507 B)
馃搫
nbpipe_pipe.go
(426 B)
馃搫
nbpipe_pipe2.go
(592 B)
馃搫
nbpipe_test.go
(2.26 KB)
馃搫
net_plan9.go
(645 B)
馃搫
netpoll.go
(16.24 KB)
馃搫
netpoll_aix.go
(4.87 KB)
馃搫
netpoll_epoll.go
(4.21 KB)
馃搫
netpoll_fake.go
(670 B)
馃搫
netpoll_kqueue.go
(4.64 KB)
馃搫
netpoll_os_test.go
(360 B)
馃搫
netpoll_solaris.go
(10.75 KB)
馃搫
netpoll_stub.go
(1.42 KB)
馃搫
netpoll_windows.go
(3.75 KB)
馃搫
norace_linux_test.go
(905 B)
馃搫
norace_test.go
(996 B)
馃搫
numcpu_freebsd_test.go
(381 B)
馃搫
os2_aix.go
(20.45 KB)
馃搫
os2_freebsd.go
(302 B)
馃搫
os2_openbsd.go
(296 B)
馃搫
os2_plan9.go
(1.48 KB)
馃搫
os2_solaris.go
(320 B)
馃搫
os3_plan9.go
(3.88 KB)
馃搫
os3_solaris.go
(17.02 KB)
馃搫
os_aix.go
(8.06 KB)
馃搫
os_android.go
(463 B)
馃搫
os_darwin.go
(11.54 KB)
馃搫
os_darwin_arm64.go
(416 B)
馃搫
os_dragonfly.go
(6.46 KB)
馃搫
os_freebsd.go
(11.2 KB)
馃搫
os_freebsd2.go
(507 B)
馃搫
os_freebsd_amd64.go
(529 B)
馃搫
os_freebsd_arm.go
(1.32 KB)
馃搫
os_freebsd_arm64.go
(398 B)
馃搫
os_freebsd_noauxv.go
(264 B)
馃搫
os_illumos.go
(3.93 KB)
馃搫
os_js.go
(3.26 KB)
馃搫
os_linux.go
(13.47 KB)
馃搫
os_linux_arm.go
(1.35 KB)
馃搫
os_linux_arm64.go
(572 B)
馃搫
os_linux_be64.go
(862 B)
馃搫
os_linux_generic.go
(950 B)
馃搫
os_linux_mips64x.go
(1.11 KB)
馃搫
os_linux_mipsx.go
(1.09 KB)
馃搫
os_linux_noauxv.go
(408 B)
馃搫
os_linux_novdso.go
(387 B)
馃搫
os_linux_ppc64x.go
(566 B)
馃搫
os_linux_riscv64.go
(198 B)
馃搫
os_linux_s390x.go
(316 B)
馃搫
os_linux_x86.go
(270 B)
馃搫
os_netbsd.go
(9.09 KB)
馃搫
os_netbsd_386.go
(588 B)
馃搫
os_netbsd_amd64.go
(585 B)
馃搫
os_netbsd_arm.go
(1.13 KB)
馃搫
os_netbsd_arm64.go
(827 B)
馃搫
os_nonopenbsd.go
(456 B)
馃搫
os_only_solaris.go
(376 B)
馃搫
os_openbsd.go
(6.01 KB)
馃搫
os_openbsd_arm.go
(749 B)
馃搫
os_openbsd_arm64.go
(416 B)
馃搫
os_openbsd_libc.go
(1.7 KB)
馃搫
os_openbsd_mips64.go
(416 B)
馃搫
os_openbsd_syscall.go
(1.27 KB)
馃搫
os_openbsd_syscall1.go
(466 B)
馃搫
os_openbsd_syscall2.go
(2.5 KB)
馃搫
os_plan9.go
(10.2 KB)
馃搫
os_plan9_arm.go
(462 B)
馃搫
os_solaris.go
(6.49 KB)
馃搫
os_windows.go
(43.68 KB)
馃搫
os_windows_arm.go
(511 B)
馃搫
os_windows_arm64.go
(339 B)
馃搫
panic.go
(44.28 KB)
馃搫
panic32.go
(4.83 KB)
馃搫
panic_test.go
(1.71 KB)
馃搫
plugin.go
(4.27 KB)
馃搧
pprof
馃搫
preempt.go
(15.4 KB)
馃搫
preempt_386.s
(1.07 KB)
馃搫
preempt_amd64.s
(1.81 KB)
馃搫
preempt_arm.s
(1.66 KB)
馃搫
preempt_arm64.s
(2.99 KB)
馃搫
preempt_mips64x.s
(2.93 KB)
馃搫
preempt_mipsx.s
(2.89 KB)
馃搫
preempt_nonwindows.go
(309 B)
馃搫
preempt_ppc64x.s
(2.92 KB)
馃搫
preempt_riscv64.s
(2.48 KB)
馃搫
preempt_s390x.s
(1.19 KB)
馃搫
preempt_wasm.s
(365 B)
馃搫
print.go
(5.95 KB)
馃搫
proc.go
(181.46 KB)
馃搫
proc_runtime_test.go
(820 B)
馃搫
proc_test.go
(25.02 KB)
馃搫
profbuf.go
(18.26 KB)
馃搫
profbuf_test.go
(8.65 KB)
馃搫
proflabel.go
(1.52 KB)
馃搧
race
馃搫
race.go
(18.56 KB)
馃搫
race0.go
(2.81 KB)
馃搫
race_amd64.s
(14.46 KB)
馃搫
race_arm64.s
(13.71 KB)
馃搫
race_ppc64le.s
(17.72 KB)
馃搫
rand_test.go
(783 B)
馃搫
rdebug.go
(553 B)
馃搫
relax_stub.go
(617 B)
馃搫
rt0_aix_ppc64.s
(4.33 KB)
馃搫
rt0_android_386.s
(822 B)
馃搫
rt0_android_amd64.s
(754 B)
馃搫
rt0_android_arm.s
(843 B)
馃搫
rt0_android_arm64.s
(941 B)
馃搫
rt0_darwin_amd64.s
(399 B)
馃搫
rt0_darwin_arm64.s
(2.27 KB)
馃搫
rt0_dragonfly_amd64.s
(448 B)
馃搫
rt0_freebsd_386.s
(454 B)
馃搫
rt0_freebsd_amd64.s
(442 B)
馃搫
rt0_freebsd_arm.s
(298 B)
馃搫
rt0_freebsd_arm64.s
(2.46 KB)
馃搫
rt0_illumos_amd64.s
(311 B)
馃搫
rt0_ios_amd64.s
(425 B)
馃搫
rt0_ios_arm64.s
(425 B)
馃搫
rt0_js_wasm.s
(2.3 KB)
馃搫
rt0_linux_386.s
(450 B)
馃搫
rt0_linux_amd64.s
(307 B)
馃搫
rt0_linux_arm.s
(1007 B)
馃搫
rt0_linux_arm64.s
(2.39 KB)
馃搫
rt0_linux_mips64x.s
(1.03 KB)
馃搫
rt0_linux_mipsx.s
(835 B)
馃搫
rt0_linux_ppc64.s
(865 B)
馃搫
rt0_linux_ppc64le.s
(3.88 KB)
馃搫
rt0_linux_riscv64.s
(370 B)
馃搫
rt0_linux_s390x.s
(676 B)
馃搫
rt0_netbsd_386.s
(452 B)
馃搫
rt0_netbsd_amd64.s
(309 B)
馃搫
rt0_netbsd_arm.s
(296 B)
馃搫
rt0_netbsd_arm64.s
(2.38 KB)
馃搫
rt0_openbsd_386.s
(454 B)
馃搫
rt0_openbsd_amd64.s
(311 B)
馃搫
rt0_openbsd_arm.s
(298 B)
馃搫
rt0_openbsd_arm64.s
(2.54 KB)
馃搫
rt0_openbsd_mips64.s
(976 B)
馃搫
rt0_plan9_386.s
(523 B)
馃搫
rt0_plan9_amd64.s
(481 B)
馃搫
rt0_plan9_arm.s
(397 B)
馃搫
rt0_solaris_amd64.s
(311 B)
馃搫
rt0_windows_386.s
(1.28 KB)
馃搫
rt0_windows_amd64.s
(986 B)
馃搫
rt0_windows_arm.s
(386 B)
馃搫
rt0_windows_arm64.s
(725 B)
馃搫
runtime-gdb.py
(15.02 KB)
馃搫
runtime-gdb_test.go
(20.19 KB)
馃搫
runtime-lldb_test.go
(4.95 KB)
馃搫
runtime.go
(1.42 KB)
馃搫
runtime1.go
(12.63 KB)
馃搫
runtime2.go
(42.27 KB)
馃搫
runtime_linux_test.go
(1.46 KB)
馃搫
runtime_mmap_test.go
(1.91 KB)
馃搫
runtime_test.go
(7.81 KB)
馃搫
runtime_unix_test.go
(1.29 KB)
馃搫
rwmutex.go
(3.53 KB)
馃搫
rwmutex_test.go
(4.03 KB)
馃搫
select.go
(14.45 KB)
馃搫
sema.go
(16.08 KB)
馃搫
sema_test.go
(2.5 KB)
馃搫
semasleep_test.go
(1.65 KB)
馃搫
sigaction.go
(543 B)
馃搫
signal_386.go
(1.72 KB)
馃搫
signal_aix_ppc64.go
(3.56 KB)
馃搫
signal_amd64.go
(2.71 KB)
馃搫
signal_arm.go
(2.56 KB)
馃搫
signal_arm64.go
(3.16 KB)
馃搫
signal_darwin.go
(2.13 KB)
馃搫
signal_darwin_amd64.go
(3.85 KB)
馃搫
signal_darwin_arm64.go
(3.6 KB)
馃搫
signal_dragonfly.go
(2.17 KB)
馃搫
signal_dragonfly_amd64.go
(2.01 KB)
馃搫
signal_freebsd.go
(2.2 KB)
馃搫
signal_freebsd_386.go
(1.55 KB)
馃搫
signal_freebsd_amd64.go
(2.03 KB)
馃搫
signal_freebsd_arm.go
(2.18 KB)
馃搫
signal_freebsd_arm64.go
(3.23 KB)
馃搫
signal_linux_386.go
(1.59 KB)
馃搫
signal_linux_amd64.go
(2.05 KB)
馃搫
signal_linux_arm.go
(2.13 KB)
馃搫
signal_linux_arm64.go
(2.95 KB)
馃搫
signal_linux_mips64x.go
(3.39 KB)
馃搫
signal_linux_mipsx.go
(3.7 KB)
馃搫
signal_linux_ppc64x.go
(3.46 KB)
馃搫
signal_linux_riscv64.go
(2.92 KB)
馃搫
signal_linux_s390x.go
(4.43 KB)
馃搫
signal_mips64x.go
(3.2 KB)
馃搫
signal_mipsx.go
(3.07 KB)
馃搫
signal_netbsd.go
(2.18 KB)
馃搫
signal_netbsd_386.go
(1.76 KB)
馃搫
signal_netbsd_amd64.go
(2.33 KB)
馃搫
signal_netbsd_arm.go
(2.3 KB)
馃搫
signal_netbsd_arm64.go
(3.4 KB)
馃搫
signal_openbsd.go
(2.18 KB)
馃搫
signal_openbsd_386.go
(1.58 KB)
馃搫
signal_openbsd_amd64.go
(2.04 KB)
馃搫
signal_openbsd_arm.go
(2.12 KB)
馃搫
signal_openbsd_arm64.go
(3.38 KB)
馃搫
signal_openbsd_mips64.go
(3.28 KB)
馃搫
signal_plan9.go
(1.93 KB)
馃搫
signal_ppc64x.go
(3.64 KB)
馃搫
signal_riscv64.go
(2.88 KB)
馃搫
signal_solaris.go
(4.5 KB)
馃搫
signal_solaris_amd64.go
(2.47 KB)
馃搫
signal_unix.go
(37.82 KB)
馃搫
signal_windows.go
(9.2 KB)
馃搫
signal_windows_test.go
(5.73 KB)
馃搫
sigqueue.go
(8.76 KB)
馃搫
sigqueue_note.go
(673 B)
馃搫
sigqueue_plan9.go
(3.39 KB)
馃搫
sigtab_aix.go
(11.3 KB)
馃搫
sigtab_linux_generic.go
(3.56 KB)
馃搫
sigtab_linux_mipsx.go
(6.01 KB)
馃搫
sizeclasses.go
(9.14 KB)
馃搫
sizeof_test.go
(905 B)
馃搫
slice.go
(8.94 KB)
馃搫
slice_test.go
(10.32 KB)
馃搫
softfloat64.go
(10.78 KB)
馃搫
softfloat64_test.go
(4.05 KB)
馃搫
stack.go
(41.92 KB)
馃搫
stack_test.go
(21.05 KB)
馃搫
string.go
(10.85 KB)
馃搫
string_test.go
(9.62 KB)
馃搫
stubs.go
(18.17 KB)
馃搫
stubs2.go
(1.14 KB)
馃搫
stubs3.go
(331 B)
馃搫
stubs_386.go
(550 B)
馃搫
stubs_amd64.go
(1.2 KB)
馃搫
stubs_arm.go
(531 B)
馃搫
stubs_arm64.go
(351 B)
馃搫
stubs_linux.go
(663 B)
馃搫
stubs_mips64x.go
(390 B)
馃搫
stubs_mipsx.go
(305 B)
馃搫
stubs_nonlinux.go
(315 B)
馃搫
stubs_ppc64.go
(383 B)
馃搫
stubs_ppc64le.go
(271 B)
馃搫
stubs_s390x.go
(256 B)
馃搫
symtab.go
(32.29 KB)
馃搫
symtab_test.go
(6.78 KB)
馃搫
sys_aix_ppc64.s
(7.13 KB)
馃搫
sys_arm.go
(521 B)
馃搫
sys_arm64.go
(469 B)
馃搫
sys_darwin.go
(15.91 KB)
馃搫
sys_darwin_amd64.s
(18.52 KB)
馃搫
sys_darwin_arm64.go
(1.68 KB)
馃搫
sys_darwin_arm64.s
(17.23 KB)
馃搫
sys_dragonfly_amd64.s
(8.42 KB)
馃搫
sys_freebsd_386.s
(8.98 KB)
馃搫
sys_freebsd_amd64.s
(10.55 KB)
馃搫
sys_freebsd_arm.s
(10.69 KB)
馃搫
sys_freebsd_arm64.s
(10.33 KB)
馃搫
sys_libc.go
(1.87 KB)
馃搫
sys_linux_386.s
(18.17 KB)
馃搫
sys_linux_amd64.s
(16.25 KB)
馃搫
sys_linux_arm.s
(15.84 KB)
馃搫
sys_linux_arm64.s
(15.26 KB)
馃搫
sys_linux_mips64x.s
(13.4 KB)
馃搫
sys_linux_mipsx.s
(11.16 KB)
馃搫
sys_linux_ppc64x.s
(21.48 KB)
馃搫
sys_linux_riscv64.s
(10.35 KB)
馃搫
sys_linux_s390x.s
(10.52 KB)
馃搫
sys_mips64x.go
(526 B)
馃搫
sys_mipsx.go
(518 B)
馃搫
sys_netbsd_386.s
(10.13 KB)
馃搫
sys_netbsd_amd64.s
(9.91 KB)
馃搫
sys_netbsd_arm.s
(10.94 KB)
馃搫
sys_netbsd_arm64.s
(10.42 KB)
馃搫
sys_nonppc64x.go
(271 B)
馃搫
sys_openbsd.go
(2.3 KB)
馃搫
sys_openbsd1.go
(1.16 KB)
馃搫
sys_openbsd2.go
(7.31 KB)
馃搫
sys_openbsd3.go
(3.29 KB)
馃搫
sys_openbsd_386.s
(19.97 KB)
馃搫
sys_openbsd_amd64.s
(16.44 KB)
馃搫
sys_openbsd_arm.s
(18.09 KB)
馃搫
sys_openbsd_arm64.s
(15.92 KB)
馃搫
sys_openbsd_mips64.s
(9.22 KB)
馃搫
sys_plan9_386.s
(4.4 KB)
馃搫
sys_plan9_amd64.s
(4.47 KB)
馃搫
sys_plan9_arm.s
(7.03 KB)
馃搫
sys_ppc64x.go
(556 B)
馃搫
sys_riscv64.go
(469 B)
馃搫
sys_s390x.go
(469 B)
馃搫
sys_solaris_amd64.s
(6.69 KB)
馃搫
sys_wasm.go
(732 B)
馃搫
sys_wasm.s
(2.65 KB)
馃搫
sys_windows_386.s
(7.74 KB)
馃搫
sys_windows_amd64.s
(9.16 KB)
馃搫
sys_windows_arm.s
(12.02 KB)
馃搫
sys_windows_arm64.s
(12.51 KB)
馃搫
sys_x86.go
(574 B)
馃搫
syscall2_solaris.go
(1.65 KB)
馃搫
syscall_aix.go
(5.99 KB)
馃搫
syscall_solaris.go
(8.26 KB)
馃搫
syscall_windows.go
(16.48 KB)
馃搫
syscall_windows_test.go
(32.53 KB)
馃搧
testdata
馃搫
textflag.h
(1.52 KB)
馃搫
time.go
(30.56 KB)
馃搫
time_fake.go
(2.38 KB)
馃搫
time_linux_amd64.s
(2.18 KB)
馃搫
time_nofake.go
(587 B)
馃搫
time_test.go
(2.03 KB)
馃搫
time_windows.h
(694 B)
馃搫
time_windows_386.s
(1.81 KB)
馃搫
time_windows_amd64.s
(1.07 KB)
馃搫
time_windows_arm.s
(2.07 KB)
馃搫
time_windows_arm64.s
(1.33 KB)
馃搫
timeasm.go
(468 B)
馃搫
timestub.go
(595 B)
馃搫
timestub2.go
(447 B)
馃搫
tls_arm.s
(3.33 KB)
馃搫
tls_arm64.h
(1.22 KB)
馃搫
tls_arm64.s
(1.2 KB)
馃搫
tls_mips64x.s
(759 B)
馃搫
tls_mipsx.s
(731 B)
馃搫
tls_ppc64x.s
(1.52 KB)
馃搫
tls_riscv64.s
(726 B)
馃搫
tls_s390x.s
(1.55 KB)
馃搫
tls_stub.go
(294 B)
馃搫
tls_windows_amd64.go
(294 B)
馃搧
trace
馃搫
trace.go
(38.36 KB)
馃搫
traceback.go
(46.51 KB)
馃搫
traceback_test.go
(8.04 KB)
馃搫
type.go
(18.59 KB)
馃搫
typekind.go
(742 B)
馃搫
utf8.go
(3.39 KB)
馃搫
vdso_elf32.go
(2.79 KB)
馃搫
vdso_elf64.go
(2.87 KB)
馃搫
vdso_freebsd.go
(2.46 KB)
馃搫
vdso_freebsd_arm.go
(454 B)
馃搫
vdso_freebsd_arm64.go
(443 B)
馃搫
vdso_freebsd_x86.go
(1.89 KB)
馃搫
vdso_in_none.go
(490 B)
馃搫
vdso_linux.go
(7.77 KB)
馃搫
vdso_linux_386.go
(669 B)
馃搫
vdso_linux_amd64.go
(685 B)
馃搫
vdso_linux_arm.go
(669 B)
馃搫
vdso_linux_arm64.go
(670 B)
馃搫
vdso_linux_mips64x.go
(892 B)
馃搫
vdso_linux_ppc64x.go
(712 B)
馃搫
vlop_386.s
(2.02 KB)
馃搫
vlop_arm.s
(7.06 KB)
馃搫
vlop_arm_test.go
(3.75 KB)
馃搫
vlrt.go
(5.91 KB)
馃搫
wincallback.go
(3.52 KB)
馃搫
write_err.go
(310 B)
馃搫
write_err_android.go
(4.65 KB)
馃搫
zcallback_windows.go
(155 B)
馃搫
zcallback_windows.s
(63.05 KB)
馃搫
zcallback_windows_arm.s
(89.34 KB)
馃搫
zcallback_windows_arm64.s
(89.34 KB)
Editing: netpoll_solaris.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package runtime import ( "runtime/internal/atomic" "unsafe" ) // Solaris runtime-integrated network poller. // // Solaris uses event ports for scalable network I/O. Event // ports are level-triggered, unlike epoll and kqueue which // can be configured in both level-triggered and edge-triggered // mode. Level triggering means we have to keep track of a few things // ourselves. After we receive an event for a file descriptor, // it's our responsibility to ask again to be notified for future // events for that descriptor. When doing this we must keep track of // what kind of events the goroutines are currently interested in, // for example a fd may be open both for reading and writing. // // A description of the high level operation of this code // follows. Networking code will get a file descriptor by some means // and will register it with the netpolling mechanism by a code path // that eventually calls runtime路netpollopen. runtime路netpollopen // calls port_associate with an empty event set. That means that we // will not receive any events at this point. The association needs // to be done at this early point because we need to process the I/O // readiness notification at some point in the future. If I/O becomes // ready when nobody is listening, when we finally care about it, // nobody will tell us anymore. // // Beside calling runtime路netpollopen, the networking code paths // will call runtime路netpollarm each time goroutines are interested // in doing network I/O. Because now we know what kind of I/O we // are interested in (reading/writing), we can call port_associate // passing the correct type of event set (POLLIN/POLLOUT). As we made // sure to have already associated the file descriptor with the port, // when we now call port_associate, we will unblock the main poller // loop (in runtime路netpoll) right away if the socket is actually // ready for I/O. // // The main poller loop runs in its own thread waiting for events // using port_getn. When an event happens, it will tell the scheduler // about it using runtime路netpollready. Besides doing this, it must // also re-associate the events that were not part of this current // notification with the file descriptor. Failing to do this would // mean each notification will prevent concurrent code using the // same file descriptor in parallel. // // The logic dealing with re-associations is encapsulated in // runtime路netpollupdate. This function takes care to associate the // descriptor only with the subset of events that were previously // part of the association, except the one that just happened. We // can't re-associate with that right away, because event ports // are level triggered so it would cause a busy loop. Instead, that // association is effected only by the runtime路netpollarm code path, // when Go code actually asks for I/O. // // The open and arming mechanisms are serialized using the lock // inside PollDesc. This is required because the netpoll loop runs // asynchronously in respect to other Go code and by the time we get // to call port_associate to update the association in the loop, the // file descriptor might have been closed and reopened already. The // lock allows runtime路netpollupdate to be called synchronously from // the loop thread while preventing other threads operating to the // same PollDesc, so once we unblock in the main loop, until we loop // again we know for sure we are always talking about the same file // descriptor and can safely access the data we want (the event set). //go:cgo_import_dynamic libc_port_create port_create "libc.so" //go:cgo_import_dynamic libc_port_associate port_associate "libc.so" //go:cgo_import_dynamic libc_port_dissociate port_dissociate "libc.so" //go:cgo_import_dynamic libc_port_getn port_getn "libc.so" //go:cgo_import_dynamic libc_port_alert port_alert "libc.so" //go:linkname libc_port_create libc_port_create //go:linkname libc_port_associate libc_port_associate //go:linkname libc_port_dissociate libc_port_dissociate //go:linkname libc_port_getn libc_port_getn //go:linkname libc_port_alert libc_port_alert var ( libc_port_create, libc_port_associate, libc_port_dissociate, libc_port_getn, libc_port_alert libcFunc netpollWakeSig uint32 // used to avoid duplicate calls of netpollBreak ) func errno() int32 { return *getg().m.perrno } func fcntl(fd, cmd, arg int32) int32 { return int32(sysvicall3(&libc_fcntl, uintptr(fd), uintptr(cmd), uintptr(arg))) } func port_create() int32 { return int32(sysvicall0(&libc_port_create)) } func port_associate(port, source int32, object uintptr, events uint32, user uintptr) int32 { return int32(sysvicall5(&libc_port_associate, uintptr(port), uintptr(source), object, uintptr(events), user)) } func port_dissociate(port, source int32, object uintptr) int32 { return int32(sysvicall3(&libc_port_dissociate, uintptr(port), uintptr(source), object)) } func port_getn(port int32, evs *portevent, max uint32, nget *uint32, timeout *timespec) int32 { return int32(sysvicall5(&libc_port_getn, uintptr(port), uintptr(unsafe.Pointer(evs)), uintptr(max), uintptr(unsafe.Pointer(nget)), uintptr(unsafe.Pointer(timeout)))) } func port_alert(port int32, flags, events uint32, user uintptr) int32 { return int32(sysvicall4(&libc_port_alert, uintptr(port), uintptr(flags), uintptr(events), user)) } var portfd int32 = -1 func netpollinit() { portfd = port_create() if portfd >= 0 { fcntl(portfd, _F_SETFD, _FD_CLOEXEC) return } print("runtime: port_create failed (errno=", errno(), ")\n") throw("runtime: netpollinit failed") } func netpollIsPollDescriptor(fd uintptr) bool { return fd == uintptr(portfd) } func netpollopen(fd uintptr, pd *pollDesc) int32 { lock(&pd.lock) // We don't register for any specific type of events yet, that's // netpollarm's job. We merely ensure we call port_associate before // asynchronous connect/accept completes, so when we actually want // to do any I/O, the call to port_associate (from netpollarm, // with the interested event set) will unblock port_getn right away // because of the I/O readiness notification. pd.user = 0 r := port_associate(portfd, _PORT_SOURCE_FD, fd, 0, uintptr(unsafe.Pointer(pd))) unlock(&pd.lock) return r } func netpollclose(fd uintptr) int32 { return port_dissociate(portfd, _PORT_SOURCE_FD, fd) } // Updates the association with a new set of interested events. After // this call, port_getn will return one and only one event for that // particular descriptor, so this function needs to be called again. func netpollupdate(pd *pollDesc, set, clear uint32) { if pd.closing { return } old := pd.user events := (old & ^clear) | set if old == events { return } if events != 0 && port_associate(portfd, _PORT_SOURCE_FD, pd.fd, events, uintptr(unsafe.Pointer(pd))) != 0 { print("runtime: port_associate failed (errno=", errno(), ")\n") throw("runtime: netpollupdate failed") } pd.user = events } // subscribe the fd to the port such that port_getn will return one event. func netpollarm(pd *pollDesc, mode int) { lock(&pd.lock) switch mode { case 'r': netpollupdate(pd, _POLLIN, 0) case 'w': netpollupdate(pd, _POLLOUT, 0) default: throw("runtime: bad mode") } unlock(&pd.lock) } // netpollBreak interrupts a port_getn wait. func netpollBreak() { if atomic.Cas(&netpollWakeSig, 0, 1) { // Use port_alert to put portfd into alert mode. // This will wake up all threads sleeping in port_getn on portfd, // and cause their calls to port_getn to return immediately. // Further, until portfd is taken out of alert mode, // all calls to port_getn will return immediately. if port_alert(portfd, _PORT_ALERT_UPDATE, _POLLHUP, uintptr(unsafe.Pointer(&portfd))) < 0 { if e := errno(); e != _EBUSY { println("runtime: port_alert failed with", e) throw("runtime: netpoll: port_alert failed") } } } } // netpoll checks for ready network connections. // Returns list of goroutines that become runnable. // delay < 0: blocks indefinitely // delay == 0: does not block, just polls // delay > 0: block for up to that many nanoseconds func netpoll(delay int64) gList { if portfd == -1 { return gList{} } var wait *timespec var ts timespec if delay < 0 { wait = nil } else if delay == 0 { wait = &ts } else { ts.setNsec(delay) if ts.tv_sec > 1e6 { // An arbitrary cap on how long to wait for a timer. // 1e6 s == ~11.5 days. ts.tv_sec = 1e6 } wait = &ts } var events [128]portevent retry: var n uint32 = 1 r := port_getn(portfd, &events[0], uint32(len(events)), &n, wait) e := errno() if r < 0 && e == _ETIME && n > 0 { // As per port_getn(3C), an ETIME failure does not preclude the // delivery of some number of events. Treat a timeout failure // with delivered events as a success. r = 0 } if r < 0 { if e != _EINTR && e != _ETIME { print("runtime: port_getn on fd ", portfd, " failed (errno=", e, ")\n") throw("runtime: netpoll failed") } // If a timed sleep was interrupted and there are no events, // just return to recalculate how long we should sleep now. if delay > 0 { return gList{} } goto retry } var toRun gList for i := 0; i < int(n); i++ { ev := &events[i] if ev.portev_source == _PORT_SOURCE_ALERT { if ev.portev_events != _POLLHUP || unsafe.Pointer(ev.portev_user) != unsafe.Pointer(&portfd) { throw("runtime: netpoll: bad port_alert wakeup") } if delay != 0 { // Now that a blocking call to netpoll // has seen the alert, take portfd // back out of alert mode. // See the comment in netpollBreak. if port_alert(portfd, 0, 0, 0) < 0 { e := errno() println("runtime: port_alert failed with", e) throw("runtime: netpoll: port_alert failed") } atomic.Store(&netpollWakeSig, 0) } continue } if ev.portev_events == 0 { continue } pd := (*pollDesc)(unsafe.Pointer(ev.portev_user)) var mode, clear int32 if (ev.portev_events & (_POLLIN | _POLLHUP | _POLLERR)) != 0 { mode += 'r' clear |= _POLLIN } if (ev.portev_events & (_POLLOUT | _POLLHUP | _POLLERR)) != 0 { mode += 'w' clear |= _POLLOUT } // To effect edge-triggered events, we need to be sure to // update our association with whatever events were not // set with the event. For example if we are registered // for POLLIN|POLLOUT, and we get POLLIN, besides waking // the goroutine interested in POLLIN we have to not forget // about the one interested in POLLOUT. if clear != 0 { lock(&pd.lock) netpollupdate(pd, 0, uint32(clear)) unlock(&pd.lock) } if mode != 0 { // TODO(mikio): Consider implementing event // scanning error reporting once we are sure // about the event port on SmartOS. // // See golang.org/x/issue/30840. netpollready(&toRun, pd, mode) } } return toRun }
Upload File
Create Folder