summaryrefslogtreecommitdiff
path: root/src/runtime/defs_linux_arm.go
Commit message (Collapse)AuthorAgeFilesLines
* runtime: mark pages we return to kernel as NOHUGEPAGEKeith Randall2015-02-251-8/+13
| | | | | | | | | | | | | | | We return memory to the kernel with madvise(..., DONTNEED). Also mark returned memory with NOHUGEPAGE to keep the kernel from merging this memory into a huge page, effectively reallocating it. Only known to be a problem on linux/{386,amd64,amd64p32} at the moment. It may come up on other os/arch combinations in the future. Fixes #8832 Change-Id: Ifffc6627a0296926e3f189a8a9b6e4bdb54c79eb Reviewed-on: https://go-review.googlesource.com/5660 Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
* runtime: support panic/print logging in android-L.Hyang-Ah Hana Kim2015-02-041-1/+10
| | | | | | | | | | | | | | In android-L, logging is done through the logd daemon. If logd daemon is available, send logging to logd. Otherwise, fallback to the legacy mechanism (/dev/log files). This change adds access/socket/connect calls to interact with the logd. Fixes golang/go#9398. Change-Id: I3c52b81b451f5862107d7c675f799fc85548486d Reviewed-on: https://go-review.googlesource.com/3350 Reviewed-by: David Crawshaw <crawshaw@golang.org>
* [dev.cc] runtime: add explicit siginfo.si_addr fieldAustin Clements2014-11-191-4/+5
| | | | | | | | | | | | | | | struct siginfo_t's si_addr field is part of a union. Previously, we represented this union in Go using an opaque byte array and accessed the si_addr field using unsafe (and wrong on 386 and arm!) pointer arithmetic. Since si_addr is the only field we use from this union, this replaces the opaque byte array with an explicit declaration of the si_addr field and accesses it directly. LGTM=minux, rsc R=rsc, minux CC=golang-codereviews https://golang.org/cl/179970044
* [dev.cc] runtime: change set_sec to take int64Russ Cox2014-11-141-2/+2
| | | | | | | | | Fixes build. Tested that all these systems can make.bash. TBR=austin CC=golang-codereviews https://golang.org/cl/177770043
* [dev.cc] runtime: fix linux buildRuss Cox2014-11-141-0/+4
| | | | | | TBR=austin CC=golang-codereviews https://golang.org/cl/176760044
* [dev.cc] runtime: convert defs_$GOOS_$GOARCH.h to GoRuss Cox2014-11-111-0/+163
The conversion was done with an automated tool and then modified only as necessary to make it compile and run. In a few cases, defs_$GOOS_$GOARCH.go already existed, so the target here is defs1_$GOOS_$GOARCH.go. [This CL is part of the removal of C code from package runtime. See golang.org/s/dev.cc for an overview.] LGTM=r R=r CC=austin, dvyukov, golang-codereviews, iant, khr https://golang.org/cl/171490043