1
0
mirror of https://github.com/golang/go synced 2024-10-01 11:38:34 -06:00
The Go programming language
Go to file
Russ Cox f481afae53 Make.pkg: remove .so before installing new one
On Linux, overwriting an mmap'ed file causes
all the MAP_PRIVATE pages to get refreshed
with the new content, even ones that have been
modified by the process that did the mmap.

One specific instance of this is that after the
dynamic linker has relocated a page from a .so,
overwriting the .so will un-relocate it, making
the next use of one of the no-longer-relocated
addresses incorrect and probably crash the
program.

Linux must go out of its way to break programs
in this way: the pages have already been copied
on write, so they're not shared with the file system
cache, and it trashes them anyway.  The manual
says the behavior when the file gets overwritten
is "undefined".  Removing before copy avoids the
undefined behavior.

R=iant
CC=golang-dev, msolo
https://golang.org/cl/2333045
2010-10-01 16:02:18 -04:00
doc gc, spec, tests: no auto-indirect of pointer to interface value 2010-09-30 14:59:41 -04:00
include cov and prof: implement windows version (just function stubs and build mods) 2010-07-30 11:47:11 +10:00
lib codereview: fix upload of hg copied file 2010-09-28 20:29:20 -04:00
misc Use Errorf where appropriate. 2010-10-01 14:14:18 +10:00
src Make.pkg: remove .so before installing new one 2010-10-01 16:02:18 -04:00
test gc: bug308 2010-09-30 15:05:01 -04:00
.hgignore goinstall: added -a flag to mean "all remote packages" 2010-09-02 13:48:28 -04:00
.hgtags tag release.2010-09-29 2010-09-30 17:48:16 +10:00
AUTHORS CLA for Sebastien Binet 2010-09-14 17:24:29 +10:00
CONTRIBUTORS CONTRIBUTORS: add Balazs Lecz (Google CLA) 2010-09-27 11:43:53 -04:00
favicon.ico add a favicon plus a couple of hi-res versions of gordon 2009-10-26 10:13:07 -07:00
LICENSE Add an explicit patent grant to the Go license. 2010-01-25 15:39:32 -08:00
README build: update, streamline documentation for new $GOBIN 2010-08-24 20:00:50 -04:00

This is the source code repository for the Go programming language.  

For documentation about how to install and use Go,
visit http://golang.org/ or load doc/install.html in your web browser.

After installing Go, you can view a nicely formatted
doc/install.html by running godoc --http=:6060
and then visiting http://localhost:6060/doc/install.html.

Unless otherwise noted, the Go source files are distributed
under the BSD-style license found in the LICENSE file.

--

Binary Distribution Notes

If you have just untarred a binary Go distribution, you need to set
the environment variable $GOROOT to the full path of the go
directory (the one containing this README).  You can omit the
variable if you unpack it into /usr/local/go, or if you rebuild
from sources by running all.bash (see doc/install.html).
You should also add the Go binary directory $GOROOT/bin
to your shell's path.

For example, if you extracted the tar file into $HOME/go, you might
put the following in your .profile:

    export GOROOT=$HOME/go
    export PATH=$PATH:$GOROOT/bin

See doc/install.html for more details.