1
0
mirror of https://github.com/golang/go synced 2024-11-19 14:54:43 -07:00
go/src/runtime
Austin Clements 295d160e01 runtime: make _TinySizeClass an int8 to prevent use as spanClass
Currently _TinySizeClass is untyped, which means it can accidentally
be used as a spanClass (not that I would know this from experience or
anything). Make it an int8 to avoid this mix up.

This is a cherry-pick of dev.garbage commit 81b74bf9c5.

Change-Id: I1e69eccee436ea5aa45e9a9828a013e369e03f1a
Reviewed-on: https://go-review.googlesource.com/41254
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
2017-04-28 22:50:39 +00:00
..
cgo runtime/cgo: actually remove gcc_libinit_openbsd.c 2017-04-12 06:56:34 +00:00
debug runtime/debug: mark TestSetGCPercent as flaky 2017-04-24 22:11:58 +00:00
internal
msan
pprof runtime/pprof: propagate profile labels into profile proto 2017-04-28 17:37:58 +00:00
race
testdata
trace
alg.go cmd/compile: simplify efaceeq and ifaceeq 2017-03-24 23:03:09 +00:00
append_test.go
asm_386.s runtime: simplify detection of preference to use AVX memmove 2017-04-25 04:50:04 +00:00
asm_amd64.s runtime: simplify detection of preference to use AVX memmove 2017-04-25 04:50:04 +00:00
asm_amd64p32.s runtime: simplify detection of preference to use AVX memmove 2017-04-25 04:50:04 +00:00
asm_arm64.s
asm_arm.s
asm_mips64x.s
asm_mipsx.s
asm_ppc64x.h all: single space after period. 2016-03-02 00:13:47 +00:00
asm_ppc64x.s cmd/asm: detect invalid DS form offsets for ppc64x 2017-04-17 21:24:35 +00:00
asm_s390x.s cmd/compile, runtime: simplify multiway select implementation 2017-03-07 20:14:17 +00:00
asm.s
atomic_arm64.s
atomic_mips64x.s
atomic_mipsx.s runtime: add support files for linux/mips{,le} port 2016-11-15 21:49:01 +00:00
atomic_pointer.go
atomic_ppc64x.s
callers_test.go
cgo_mmap.go
cgo_ppc64x.go
cgo_sigaction.go
cgo.go
cgocall.go
cgocallback.go
cgocheck.go runtime: rename _MSpanStack -> _MSpanManual 2017-04-13 18:20:30 +00:00
chan_test.go
chan.go runtime: remove unused *chantype parameters 2017-03-21 17:10:16 +00:00
chanbarrier_test.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
closure_test.go
compiler.go
complex_test.go
complex.go
cpuflags_amd64.go runtime: simplify detection of preference to use AVX memmove 2017-04-25 04:50:04 +00:00
cpuprof.go runtime/pprof: use new profile buffers for CPU profiling 2017-02-24 17:01:47 +00:00
cputicks.go runtime: add support files for linux/mips{,le} port 2016-11-15 21:49:01 +00:00
crash_cgo_test.go runtime: ignore TestCgoPprofPIE test failures on Alpine (take 2) 2017-04-25 05:02:56 +00:00
crash_nonunix_test.go
crash_test.go
crash_unix_test.go
debug.go
defs1_linux.go runtime: unify handling of alternate signal stack 2016-09-26 04:07:31 +00:00
defs1_netbsd_386.go
defs1_netbsd_amd64.go
defs1_netbsd_arm.go
defs1_solaris_amd64.go
defs2_linux.go runtime: unify handling of alternate signal stack 2016-09-26 04:07:31 +00:00
defs3_linux.go
defs_arm_linux.go runtime: unify handling of alternate signal stack 2016-09-26 04:07:31 +00:00
defs_darwin_386.go
defs_darwin_amd64.go runtime: write sigsetstack for Darwin, fix sigaction arg 2015-12-18 20:56:10 +00:00
defs_darwin_arm64.go
defs_darwin_arm.go
defs_darwin.go
defs_dragonfly_amd64.go
defs_dragonfly.go
defs_freebsd_386.go runtime: use cpuset_getaffinity for runtime.NumCPU() on FreeBSD 2017-03-10 22:06:24 +00:00
defs_freebsd_amd64.go runtime: use cpuset_getaffinity for runtime.NumCPU() on FreeBSD 2017-03-10 22:06:24 +00:00
defs_freebsd_arm.go runtime: use cpuset_getaffinity for runtime.NumCPU() on FreeBSD 2017-03-10 22:06:24 +00:00
defs_freebsd.go
defs_linux_386.go
defs_linux_amd64.go
defs_linux_arm64.go
defs_linux_arm.go runtime: unify handling of alternate signal stack 2016-09-26 04:07:31 +00:00
defs_linux_mips64x.go
defs_linux_mipsx.go
defs_linux_ppc64.go
defs_linux_ppc64le.go
defs_linux_s390x.go
defs_linux.go
defs_nacl_386.go runtime: log all thread stack traces during GODEBUG=crash on Linux and OS X 2015-01-14 18:33:38 +00:00
defs_nacl_amd64p32.go runtime: log all thread stack traces during GODEBUG=crash on Linux and OS X 2015-01-14 18:33:38 +00:00
defs_nacl_arm.go
defs_netbsd_386.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
defs_netbsd_amd64.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
defs_netbsd_arm.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
defs_netbsd.go runtime: unify handling of alternate signal stack 2016-09-26 04:07:31 +00:00
defs_openbsd_386.go
defs_openbsd_amd64.go
defs_openbsd_arm.go
defs_openbsd.go runtime: unify handling of alternate signal stack 2016-09-26 04:07:31 +00:00
defs_plan9_386.go
defs_plan9_amd64.go runtime: record current PC for SIGPROF on non-Go thread 2016-10-11 12:56:15 +00:00
defs_plan9_arm.go
defs_solaris_amd64.go
defs_solaris.go
defs_windows_386.go
defs_windows_amd64.go runtime: use (*context) ip, setip, sp and setsp everywhere on windows 2015-04-09 00:57:28 +00:00
defs_windows.go
duff_386.s
duff_amd64.s runtime: optimize duffcopy on amd64 2015-09-22 15:02:37 +00:00
duff_arm64.s
duff_arm.s
duff_mips64x.s
duff_ppc64x.s cmd/internal/obj, runtime: add NOFRAME flag to suppress stack frame set up on ppc64x 2015-10-18 22:13:30 +00:00
env_plan9.go
env_posix.go
env_test.go runtime: fix TestFixedGOROOT to properly restore the GOROOT env var after test 2015-06-03 23:33:48 +00:00
error.go
example_test.go
export_arm_test.go
export_futex_test.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
export_linux_test.go
export_mmap_test.go
export_test.go runtime: separate spans of noscan objects 2017-04-28 22:50:31 +00:00
export_windows_test.go
extern.go
fastlog2_test.go
fastlog2.go runtime: make complex division c99 compatible 2017-03-15 22:45:17 +00:00
fastlog2table.go
float.go
funcdata.h
futex_test.go
gc_test.go
gcinfo_test.go
go_tls.h
HACKING.md
hash32.go
hash64.go
hash_test.go runtime: remove TestCollisions from -short 2016-09-24 03:10:13 +00:00
hashmap_fast.go
hashmap.go runtime: preallocate some overflow buckets 2017-04-19 13:47:28 +00:00
heapdump.go
iface_test.go cmd/compile, runtime: specialize convT2x, don't alloc for zero vals 2017-02-28 19:23:33 +00:00
iface.go cmd/compile, runtime: specialize convT2x, don't alloc for zero vals 2017-02-28 19:23:33 +00:00
lfstack_32bit.go
lfstack_64bit.go
lfstack_test.go
lfstack.go runtime: introduce a type for lfstacks 2017-03-19 22:42:24 +00:00
lock_futex.go
lock_sema.go runtime: access _cgo_yield indirectly 2017-03-24 15:37:56 +00:00
Makefile
malloc_test.go runtime: improve TestMemStats checks 2017-03-31 00:46:16 +00:00
malloc.go runtime: make _TinySizeClass an int8 to prevent use as spanClass 2017-04-28 22:50:39 +00:00
map_test.go
mapspeed_test.go
mbarrier.go
mbitmap.go runtime: eliminate heapBitsSetTypeNoScan 2017-04-28 22:50:37 +00:00
mcache.go runtime: separate spans of noscan objects 2017-04-28 22:50:31 +00:00
mcentral.go runtime: separate spans of noscan objects 2017-04-28 22:50:31 +00:00
mem_bsd.go
mem_darwin.go
mem_linux.go
mem_plan9.go
mem_windows.go
memclr_386.s
memclr_amd64.s
memclr_arm64.s
memclr_arm.s
memclr_mips64x.s runtime, cmd/compile: rename memclr -> memclrNoHeapPointers 2016-10-28 18:20:33 +00:00
memclr_mipsx.s runtime: add support files for linux/mips{,le} port 2016-11-15 21:49:01 +00:00
memclr_plan9_386.s
memclr_plan9_amd64.s runtime, cmd/compile: rename memclr -> memclrNoHeapPointers 2016-10-28 18:20:33 +00:00
memclr_ppc64x.s runtime, cmd/compile: rename memclr -> memclrNoHeapPointers 2016-10-28 18:20:33 +00:00
memclr_s390x.s runtime, cmd/compile: rename memclr -> memclrNoHeapPointers 2016-10-28 18:20:33 +00:00
memmove_386.s
memmove_amd64.s runtime: simplify detection of preference to use AVX memmove 2017-04-25 04:50:04 +00:00
memmove_arm64.s runtime: adjust the arm64 memmove and memclr to operate by word as much as they can 2015-10-08 07:49:35 +00:00
memmove_arm.s
memmove_linux_amd64_test.go
memmove_mips64x.s runtime: added assembly part of linux/mips64{,le} support 2015-11-12 04:46:17 +00:00
memmove_mipsx.s runtime: add support files for linux/mips{,le} port 2016-11-15 21:49:01 +00:00
memmove_nacl_amd64p32.s
memmove_plan9_386.s
memmove_plan9_amd64.s all: fix obsolete inferno-os links 2016-08-29 04:54:42 +00:00
memmove_ppc64x.s
memmove_s390x.s
memmove_test.go
mfinal_test.go
mfinal.go runtime: separate spans of noscan objects 2017-04-28 22:50:31 +00:00
mfixalloc.go
mgc.go runtime/debug: don't trigger a GC on SetGCPercent 2017-04-21 17:42:02 +00:00
mgclarge.go
mgcmark.go runtime: eliminate heapBits.hasPointers 2017-04-28 22:50:34 +00:00
mgcsweep.go runtime: separate spans of noscan objects 2017-04-28 22:50:31 +00:00
mgcsweepbuf.go
mgcwork.go runtime: free workbufs during sweeping 2017-04-13 18:20:47 +00:00
mheap.go runtime: make _TinySizeClass an int8 to prevent use as spanClass 2017-04-28 22:50:39 +00:00
mkduff.go
mkfastlog2table.go
mknacl.sh
mksizeclasses.go
mmap.go runtime: find a home for orphaned comments 2016-04-14 18:34:09 +00:00
mprof.go
msan0.go
msan_amd64.s
msan.go
msize.go
mstats.go runtime: separate spans of noscan objects 2017-04-28 22:50:31 +00:00
net_plan9.go
netpoll_epoll.go runtime: adjust netpoll panic messages 2017-04-25 21:39:18 +00:00
netpoll_kqueue.go runtime: adjust netpoll panic messages 2017-04-25 21:39:18 +00:00
netpoll_nacl.go
netpoll_solaris.go runtime: adjust netpoll panic messages 2017-04-25 21:39:18 +00:00
netpoll_stub.go
netpoll_windows.go runtime: adjust netpoll panic messages 2017-04-25 21:39:18 +00:00
netpoll.go runtime: adjust netpoll panic messages 2017-04-25 21:39:18 +00:00
noasm.go
norace_linux_test.go
norace_test.go
numcpu_freebsd_test.go
os2_freebsd.go
os2_nacl.go
os2_openbsd.go
os2_plan9.go runtime: log all thread stack traces during GODEBUG=crash on Linux and OS X 2015-01-14 18:33:38 +00:00
os2_solaris.go runtime: if we don't handle a signal on a non-Go thread, raise it 2015-07-22 20:26:29 +00:00
os3_plan9.go
os3_solaris.go
os_android.go
os_darwin_arm64.go
os_darwin_arm.go
os_darwin.go
os_dragonfly.go
os_freebsd_arm.go runtime: use hardware divider to improve performance 2017-04-11 12:25:55 +00:00
os_freebsd.go
os_linux_arm64.go runtime: gofmt -w -s 2017-04-24 17:01:29 +00:00
os_linux_arm.go
os_linux_be64.go
os_linux_generic.go
os_linux_mips64x.go
os_linux_mipsx.go
os_linux_noauxv.go
os_linux_ppc64x.go runtime: get ppc64x ISA level and hardware capabilities from HWCAP/HWCAP2 2016-11-01 13:41:04 +00:00
os_linux_s390x.go
os_linux.go runtime: check sched_getaffinity return value 2017-01-03 22:35:42 +00:00
os_nacl_arm.go
os_nacl.go runtime: enable/disable SIGPROF if needed when profiling 2017-02-09 18:53:34 +00:00
os_netbsd_386.go os: consolidate os{1,2}_*.go files 2016-04-06 05:04:47 +00:00
os_netbsd_amd64.go
os_netbsd_arm.go runtime: use hardware divider to improve performance 2017-04-11 12:25:55 +00:00
os_netbsd.go runtime: minor simplifications to signal code 2016-09-28 13:12:47 +00:00
os_openbsd_arm.go
os_openbsd.go
os_plan9_arm.go runtime: use hardware divider to improve performance 2017-04-11 12:25:55 +00:00
os_plan9.go
os_solaris.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
os_windows.go runtime: make time correctly update on Wine 2017-04-25 04:30:06 +00:00
panic.go
plugin.go
print.go
proc_runtime_test.go runtime: improve randomized stealing logic 2016-03-25 11:00:48 +00:00
proc_test.go all: remove some unused parameters in test code 2017-04-25 14:38:10 +00:00
proc.go runtime: generalize GC trigger 2017-03-31 01:15:06 +00:00
profbuf_test.go
profbuf.go runtime: fix profile handling of labels for race detector 2017-04-28 17:37:46 +00:00
proflabel.go runtime: fix profile handling of labels for race detector 2017-04-28 17:37:46 +00:00
race0.go
race_amd64.s runtime: fix race atomic operations on external memory 2016-06-29 15:30:54 +00:00
race.go
rand_test.go
rdebug.go
rt0_android_386.s
rt0_android_amd64.s
rt0_android_arm64.s runtime: fall back to /proc/self/auxv in Android libs 2016-11-29 15:27:53 +00:00
rt0_android_arm.s
rt0_darwin_386.s
rt0_darwin_amd64.s
rt0_darwin_arm64.s
rt0_darwin_arm.s
rt0_dragonfly_amd64.s
rt0_freebsd_386.s
rt0_freebsd_amd64.s build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
rt0_freebsd_arm.s runtime: add support for openbsd/arm 2015-03-15 04:06:26 +00:00
rt0_linux_386.s runtime, syscall: switch linux/386 to use int 0x80 2016-02-24 02:07:17 +00:00
rt0_linux_amd64.s
rt0_linux_arm64.s
rt0_linux_arm.s
rt0_linux_mips64x.s all: fix minor misspellings 2017-04-03 23:19:07 +00:00
rt0_linux_mipsx.s
rt0_linux_ppc64.s runtime, runtime/cgo: conform to PIC register use rules in ppc64 asm 2015-10-18 23:36:39 +00:00
rt0_linux_ppc64le.s
rt0_linux_s390x.s
rt0_nacl_386.s
rt0_nacl_amd64p32.s
rt0_nacl_arm.s
rt0_netbsd_386.s
rt0_netbsd_amd64.s
rt0_netbsd_arm.s runtime: add support for openbsd/arm 2015-03-15 04:06:26 +00:00
rt0_openbsd_386.s
rt0_openbsd_amd64.s
rt0_openbsd_arm.s
rt0_plan9_386.s
rt0_plan9_amd64.s runtime: replace is{plan9,solaris,windows} with GOOS tests 2015-10-23 18:11:17 +00:00
rt0_plan9_arm.s runtime: new files for plan9_arm support 2016-03-07 16:25:48 +00:00
rt0_solaris_amd64.s
rt0_windows_386.s
rt0_windows_amd64.s cmd/go: fix -buildmode=c-archive should work on windows 2016-04-04 03:38:25 +00:00
runtime1.go
runtime2.go runtime: simplify detection of preference to use AVX memmove 2017-04-25 04:50:04 +00:00
runtime_linux_test.go
runtime_mmap_test.go
runtime_test.go
runtime_unix_test.go
runtime-gdb_test.go cmd/compile: experiment which clobbers all dead pointer fields 2017-04-21 20:19:50 +00:00
runtime-gdb.py runtime: set $sp before $pc in gdb python script 2016-06-09 20:02:59 +00:00
runtime-lldb_test.go
runtime.go
select.go
sema.go
sigaction_linux.go
signal_386.go
signal_amd64x.go runtime: avoid repeated findmoduledatap calls 2017-03-06 19:17:24 +00:00
signal_arm64.go runtime: avoid repeated findmoduledatap calls 2017-03-06 19:17:24 +00:00
signal_arm.go
signal_darwin_386.go
signal_darwin_amd64.go
signal_darwin_arm64.go
signal_darwin_arm.go
signal_darwin.go
signal_dragonfly_amd64.go
signal_dragonfly.go
signal_freebsd_386.go
signal_freebsd_amd64.go runtime: record current PC for SIGPROF on non-Go thread 2016-10-11 12:56:15 +00:00
signal_freebsd_arm.go runtime: record current PC for SIGPROF on non-Go thread 2016-10-11 12:56:15 +00:00
signal_freebsd.go
signal_linux_386.go runtime: record current PC for SIGPROF on non-Go thread 2016-10-11 12:56:15 +00:00
signal_linux_amd64.go
signal_linux_arm64.go
signal_linux_arm.go runtime: record current PC for SIGPROF on non-Go thread 2016-10-11 12:56:15 +00:00
signal_linux_mips64x.go runtime: record current PC for SIGPROF on non-Go thread 2016-10-11 12:56:15 +00:00
signal_linux_mipsx.go
signal_linux_ppc64x.go runtime: record current PC for SIGPROF on non-Go thread 2016-10-11 12:56:15 +00:00
signal_linux_s390x.go
signal_mips64x.go
signal_mipsx.go
signal_nacl_386.go
signal_nacl_amd64p32.go
signal_nacl_arm.go
signal_nacl.go
signal_netbsd_386.go
signal_netbsd_amd64.go
signal_netbsd_arm.go runtime: record current PC for SIGPROF on non-Go thread 2016-10-11 12:56:15 +00:00
signal_netbsd.go
signal_openbsd_386.go
signal_openbsd_amd64.go
signal_openbsd_arm.go
signal_openbsd.go
signal_plan9.go
signal_ppc64x.go
signal_sighandler.go
signal_solaris_amd64.go
signal_solaris.go
signal_unix.go
signal_windows.go runtime: minor simplifications to signal code 2016-09-28 13:12:47 +00:00
sigqueue_plan9.go all: single space after period. 2016-03-02 00:13:47 +00:00
sigqueue.go
sigtab_linux_generic.go
sigtab_linux_mipsx.go
sizeclasses.go
slice.go
softfloat64_test.go
softfloat64.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
softfloat_arm.go [dev.ssa] cmd/internal/obj, etc.: add and use NEGF, NEGD instructions on ARM 2016-07-20 18:15:37 +00:00
sqrt_test.go
sqrt.go
stack_test.go
stack.go
string_test.go
string.go
stubs2.go
stubs32.go runtime: add support files for linux/mips{,le} port 2016-11-15 21:49:01 +00:00
stubs_android.go
stubs_asm.go
stubs_linux.go
stubs_nonlinux.go
stubs.go runtime: separate spans of noscan objects 2017-04-28 22:50:31 +00:00
symtab_test.go
symtab.go runtime: document runtime.Frames better 2017-04-28 22:43:20 +00:00
sys_arm64.go runtime, cmd/internal/obj: get rid of rewindmorestack 2016-10-05 18:19:46 +00:00
sys_arm.go
sys_darwin_386.s
sys_darwin_amd64.s
sys_darwin_arm64.s time: record monotonic clock reading in time.Now, for more accurate comparisons 2017-02-03 19:04:52 +00:00
sys_darwin_arm.s
sys_dragonfly_amd64.s
sys_freebsd_386.s runtime: use cpuset_getaffinity for runtime.NumCPU() on FreeBSD 2017-03-10 22:06:24 +00:00
sys_freebsd_amd64.s
sys_freebsd_arm.s
sys_linux_386.s
sys_linux_amd64.s
sys_linux_arm64.s
sys_linux_arm.s
sys_linux_mips64x.s
sys_linux_mipsx.s
sys_linux_ppc64x.s runtime: inform arena placement using sbrk(0) 2017-04-21 14:34:10 +00:00
sys_linux_s390x.s
sys_mips64x.go
sys_mipsx.go runtime: add support files for linux/mips{,le} port 2016-11-15 21:49:01 +00:00
sys_nacl_386.s
sys_nacl_amd64p32.s
sys_nacl_arm.s
sys_netbsd_386.s
sys_netbsd_amd64.s time: record monotonic clock reading in time.Now, for more accurate comparisons 2017-02-03 19:04:52 +00:00
sys_netbsd_arm.s time: record monotonic clock reading in time.Now, for more accurate comparisons 2017-02-03 19:04:52 +00:00
sys_nonppc64x.go
sys_openbsd_386.s
sys_openbsd_amd64.s
sys_openbsd_arm.s
sys_plan9_386.s
sys_plan9_amd64.s
sys_plan9_arm.s
sys_ppc64x.go runtime, cmd/internal/obj: get rid of rewindmorestack 2016-10-05 18:19:46 +00:00
sys_s390x.go
sys_solaris_amd64.s
sys_windows_386.s runtime: make time correctly update on Wine 2017-04-25 04:30:06 +00:00
sys_windows_amd64.s runtime: make time correctly update on Wine 2017-04-25 04:30:06 +00:00
sys_x86.go
syscall2_solaris.go
syscall_nacl.h
syscall_solaris.go
syscall_windows_test.go
syscall_windows.go runtime, syscall: only search for Windows DLLs in the System32 directory 2016-04-01 22:55:36 +00:00
textflag.h
time.go
timeasm.go
timestub.go time: optimize Now on darwin, windows 2017-02-09 14:45:16 +00:00
tls_arm64.h
tls_arm64.s cmd/internal/obj, cmd/link, runtime: native-ish support for tls on arm64 2015-10-28 19:51:05 +00:00
tls_arm.s
tls_mips64x.s
tls_mipsx.s
tls_ppc64x.s all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
tls_s390x.s
trace.go
traceback.go
type.go
typekind.go
unaligned1.go
unaligned2.go
utf8.go
vdso_linux_amd64.go runtime: common handling of _AT_RANDOM auxv 2016-04-16 21:42:31 +00:00
vdso_none.go runtime: os.Executable runtime support for Darwin 2016-11-07 20:18:36 +00:00
vlop_386.s
vlop_arm_test.go
vlop_arm.s
vlrt.go
wincallback.go
write_err_android.go
write_err.go
zcallback_windows.go
zcallback_windows.s