gcc/libgo/runtime
Ian Lance Taylor 9490b8da72 re PR go/60931 (libgo has issues when page size is not 4k)
PR go/60931

runtime: Fix garbage collector issue with non 4kB system page size

The go garbage collector tracks memory in terms of 4kB pages.
Most of the code checks getpagesize() at runtime and does the
right thing.

On a 64kB ppc64 box I see SEGVs in long running processes
which has been diagnosed as a bug in scavengelist.
scavengelist does a madvise(MADV_DONTNEED) without rounding
the arguments to the system page size.  A strace of one of the
failures shows the problem:

madvise(0xc211030000, 4096, MADV_DONTNEED) = 0

The kernel rounds the length up to 64kB and we mark 60kB of
valid data as no longer needed.

Round start up to a system page and end down before calling
madvise.

From-SVN: r209777
2014-04-25 04:29:07 +00:00
..
arch.h
array.h
chan.c Sync to current external repository. 2014-04-14 22:43:47 +00:00
cpuprof.c libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
defs.h
env_posix.c libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
getncpu-bsd.c
getncpu-irix.c
getncpu-linux.c
getncpu-none.c
getncpu-solaris.c
go-alloc.h
go-append.c runtime: Fix append of slice with elements of zero size. 2013-10-02 23:49:39 +00:00
go-assert-interface.c
go-assert.c
go-assert.h
go-breakpoint.c
go-byte-array-to-string.c libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
go-caller.c runtime: Update for change to libbacktrace library. 2013-11-19 15:02:27 +00:00
go-callers.c libgo: Avoid some cases of getting callers recursively. 2013-12-01 01:40:16 +00:00
go-can-convert-interface.c
go-cdiv.c compiler, runtime: Fix complex division of NaN / 0. 2013-10-09 22:31:15 +00:00
go-cgo.c runtime: Support cgo callbacks from threads started by C. 2013-07-23 20:26:09 +00:00
go-check-interface.c
go-construct-map.c
go-convert-interface.c
go-copy.c
go-defer.c runtime: Fix defer of unlock thread at program startup. 2013-12-12 20:13:58 +00:00
go-defer.h runtime: Fix defer of unlock thread at program startup. 2013-12-12 20:13:58 +00:00
go-deferred-recover.c
go-eface-compare.c
go-eface-val-compare.c
go-fieldtrack.c
go-getgoroot.c
go-int-array-to-string.c runtime: Fix handling of surrogate pairs in string([]rune). 2013-11-26 23:27:29 +00:00
go-int-to-string.c libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
go-interface-compare.c
go-interface-eface-compare.c
go-interface-val-compare.c
go-main.c libgo: Update to Go 1.1.1. 2013-07-16 06:54:42 +00:00
go-make-slice.c libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
go-map-delete.c
go-map-index.c libgo: Update to Go 1.1.1. 2013-07-16 06:54:42 +00:00
go-map-len.c
go-map-range.c
go-matherr.c
go-memcmp.c
go-nanotime.c
go-new-map.c
go-new.c libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
go-nosys.c runtime: Fix typo in dup3 fallback implementation. 2013-10-18 13:26:40 +00:00
go-now.c
go-panic.c runtime: Fix defer of unlock thread at program startup. 2013-12-12 20:13:58 +00:00
go-panic.h
go-print.c
go-recover.c compiler, reflect, runtime: Implement method values in reflect. 2013-12-12 01:08:52 +00:00
go-reflect-call.c reflect: Handle calls to functions that take or return empty structs 2013-11-19 02:30:03 +00:00
go-reflect-map.c libgo: Update to Go 1.1.1. 2013-07-16 06:54:42 +00:00
go-rune.c
go-runtime-error.c
go-setenv.c
go-signal.c runtime: Use pthread_sigmask instead of sigprocmask. 2013-12-04 01:35:53 +00:00
go-strcmp.c
go-string-to-byte-array.c libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
go-string-to-int-array.c libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
go-string.h
go-strplus.c libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
go-strslice.c
go-traceback.c
go-trampoline.c
go-type-complex.c
go-type-eface.c
go-type-error.c
go-type-float.c
go-type-identity.c
go-type-interface.c
go-type-string.c
go-type.h
go-typedesc-equal.c
go-typestring.c
go-unsafe-new.c libgo: Update to Go 1.1.1. 2013-07-16 06:54:42 +00:00
go-unsafe-newarray.c libgo: Update to Go 1.1.1. 2013-07-16 06:54:42 +00:00
go-unsafe-pointer.c
go-unwind.c runtime: Fix defer of unlock thread at program startup. 2013-12-12 20:13:58 +00:00
go-varargs.c syscall: Only call varargs libc functions from C code. 2013-11-24 02:38:28 +00:00
goc2c.c
iface.goc
interface.h
lfstack.c libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
lock_futex.c libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
lock_sema.c re PR go/59408 (Many Go tests FAIL with notesleep not on g0) 2013-12-06 18:26:27 +00:00
malloc.goc runtime: Use a better heap location on arm64 systems. 2014-02-21 03:24:03 +00:00
malloc.h runtime: Add netpoll code that uses select. 2013-11-14 20:15:04 +00:00
map.goc
map.h
mcache.c libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
mcentral.c libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
mem_posix_memalign.c
mem.c libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
mfinal.c libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
mfixalloc.c libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
mgc0.c libgo: Update to Go 1.2.1 release. 2014-03-03 20:14:52 +00:00
mgc0.h libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
mheap.c re PR go/60931 (libgo has issues when page size is not 4k) 2014-04-25 04:29:07 +00:00
mprof.goc libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
msize.c libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
netpoll_epoll.c runtime: Add netpoll code that uses select. 2013-11-14 20:15:04 +00:00
netpoll_kqueue.c runtime: Add netpoll code that uses select. 2013-11-14 20:15:04 +00:00
netpoll_select.c re PR go/59433 (Many 64-bit Go tests SEGV on Solaris) 2014-01-08 00:42:45 +00:00
netpoll_stub.c runtime: Add netpoll code that uses select. 2013-11-14 20:15:04 +00:00
netpoll.goc libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
panic.c runtime: Fix defer of unlock thread at program startup. 2013-12-12 20:13:58 +00:00
parfor.c libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
print.c libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
proc.c libgo: Remove Solaris 8 & 9 support. 2014-04-16 20:33:57 +00:00
race.h libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
reflect.goc
rtems-task-variable-add.c
runtime1.goc
runtime.c runtime: Remove unused runtime_cpuid variables. 2014-01-06 03:01:58 +00:00
runtime.h runtime: Fix prototype and one use of runtime_traceback. 2013-12-03 14:51:07 +00:00
sema.goc libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
signal_unix.c libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
signal_unix.h libgo: Update to Go 1.1.1. 2013-07-16 06:54:42 +00:00
sigqueue.goc libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
string.goc libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
thread-linux.c libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
thread-sema.c
thread.c libgo: Update to Go 1.1.1. 2013-07-16 06:54:42 +00:00
time.goc libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
yield.c