diff options
author | Aram H?v?rneanu <aram@mgk.ro> | 2014-11-13 16:07:10 +0100 |
---|---|---|
committer | Aram H?v?rneanu <aram@mgk.ro> | 2014-11-13 16:07:10 +0100 |
commit | 44746d159eb524353fd59b79470d9fcd34014376 (patch) | |
tree | ef1952e088f79f6dd0af006edf8d2f3fd58b3b3a /src/runtime/mem_bsd.go | |
parent | 6399eb54aaff5cc06643bcbbfa1b3dd24f743681 (diff) | |
download | go-44746d159eb524353fd59b79470d9fcd34014376.tar.gz |
[dev.cc] runtime: convert Solaris port to Go
Memory management was consolitated with the BSD ports, since
it was almost identical.
Assembly thunks are gone, being replaced by the new //go:linkname
feature.
This change supersedes CL 138390043 (runtime: convert solaris
netpoll to Go), which was previously reviewed and tested.
This change is only the first step, the port now builds,
but doesn't run. Binaries fail to exec:
ld.so.1: 6.out: fatal: 6.out: TLS requirement failure : TLS support is unavailable
Killed
This seems to happen because binaries don't link with libc.so
anymore. We will have to solve that in a different CL.
Also this change is just a rough translation of the original
C code, cleanup will come in a different CL.
[This CL is part of the removal of C code from package runtime.
See golang.org/s/dev.cc for an overview.]
LGTM=rsc
R=rsc, dave
CC=golang-codereviews, iant, khr, minux, r, rlh
https://codereview.appspot.com/174960043
Diffstat (limited to 'src/runtime/mem_bsd.go')
-rw-r--r-- | src/runtime/mem_bsd.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/mem_bsd.go b/src/runtime/mem_bsd.go index fffb350ed..4bd40a39f 100644 --- a/src/runtime/mem_bsd.go +++ b/src/runtime/mem_bsd.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build dragonfly freebsd netbsd openbsd +// +build dragonfly freebsd netbsd openbsd solaris package runtime |