Commits

Author Commit Message Labels Comments Date
Joseph Poirier
Merged changes from golang.
Rob Pike
text/template: fix bug in evaluating a chain starting with a function. R=golang-dev, alberto.garcia.hierro CC=golang-dev https://codereview.appspot.com/7861046
Rob Pike
vet: fix test_deadcode.go's tests This is a totally mechanical change. Errors are reported for the beginning of the statement, not the end, so the errchk markers need to be on the opening brace, not the closing one. It seems this test was never run. R=golang-dev, bradfitz CC=golang-dev https://codereview.appspot.com/7746050
Rob Pike
cmd/vet: fix assembly test files They should be build-tagged for vet_test not ignore, and not have a Go package clause. R=golang-dev, bradfitz CC=golang-dev https://codereview.appspot.com/8016047
Brad Fitzpatrick
runtime: allocate maps' first bucket table lazily Motivated by garbage profiling in HTTP benchmarks. This changes means new empty maps are just one small allocation (the HMap) instead the HMap + the relatively larger h->buckets allocation. This helps maps which remain empty throughout their life. benchmark old ns/op new ns/op delta BenchmarkNewEmptyMap 196 107 -45.41% benchmark old allocs ne…
Ian Lance Taylor
cmd/ld: fix OpenBSD (third try) On OpenBSD don't mark runtime.{g,m} as STT_TLS symbols. R=golang-dev, dave CC=golang-dev https://codereview.appspot.com/7867046
Rob Pike
faq: update with some links and 1.1-specific details R=golang-dev, remyoudompheng, iant CC=golang-dev https://codereview.appspot.com/8038048
Robert Griesemer
cmd/godoc: emit id's for constants and variables Fixes issue 5077. R=r CC=golang-dev https://codereview.appspot.com/8021044
Ian Lance Taylor
cmd/ld, cmd/8l: Fix OpenBSD build. Don't generate TLS sections on OpenBSD. R=golang-dev, r CC=golang-dev https://codereview.appspot.com/8059043
Ian Lance Taylor
cmd/6l: fix OpenBSD build Avoid generating TLS relocations on OpenBSD. R=golang-dev, bradfitz CC=golang-dev https://codereview.appspot.com/7641055
Rémy Oudompheng
cmd/gc: update runtime.go for new map implementation. R=golang-dev, bradfitz, r CC=golang-dev https://codereview.appspot.com/8051044
Brad Fitzpatrick
net/http: server optimization; reduce GCs, generate ~half the garbage There was another bufio.Writer not being reused, found with GOGC=off and -test.memprofile. benchmark old ns/op new ns/op delta BenchmarkServerFakeConnWithKeepAlive 18270 16046 -12.17% benchmark old allocs new allocs delta BenchmarkServerFakeConnWithKeepAlive 38 36 -5.26% benchmark …
Brad Fitzpatrick
net/http: new server-only, single-connection keep-alive benchmark R=golang-dev, r CC=golang-dev https://codereview.appspot.com/8046043
Ian Lance Taylor
cmd/ld: emit TLS relocations during external linking This CL was written by rsc. I just tweaked 8l. This CL adds TLS relocation to the ELF .o file we write during external linking, so that the host linker (gcc) can decide the final location of m and g. Similar relocations are not necessary on OS X because we use an alternate program start-time mechanism to acquire thread-local storage. Similar relocations are not necessary on ARM or Plan 9 or Wi…
Rémy Oudompheng
runtime/race: mark failing test as such. Fixes race builder. R=golang-dev, bradfitz CC=golang-dev https://codereview.appspot.com/8055045
Rémy Oudompheng
cmd/gc: fix race instrumentation of append and type switches. The remaining issues are about runtime and sync package instrumentation. Update issue 4228 R=dvyukov, bradfitz CC=golang-dev https://codereview.appspot.com/8041043
Jonathan Rudenberg
doc: fix go1.1.html typos R=golang-dev, bradfitz CC=golang-dev https://codereview.appspot.com/7635049 Committer: Brad Fitzpatrick <bradfitz@golang.org>
Brad Fitzpatrick
net/http: improve test leak checker flakiness And make it have more useful output on failure. Update issue 5005 R=golang-dev, r CC=golang-dev https://codereview.appspot.com/8016046
Anthony Martin
libmach: respect symbol table boundaries Since fp->symsz includes the size of the header in the new symbol table format, we were reading past the end and decoding a few garbage symbols from data in the pc/line table. R=rsc, r CC=golang-dev https://codereview.appspot.com/7993043
Brad Fitzpatrick
net/textproto: add "Cookie" to the common headers list Seems to have been omitted before. R=golang-dev, dave CC=golang-dev https://codereview.appspot.com/7749049
Robert Griesemer
godoc: pass *PageInfos instead of *token.FileSets in templates - convert all formatters that require a *token.FileSet to consistenly use a *PageInfo as first argument instead - adjust templates correspondingly - fix outstanding bug from previous CL 8005044 Going forward, with this change the affected functions have access to the full page "context" (PageInfo), not just the respective file set. This will permit better context-dependent formatting in the fut…
Rob Pike
lib/codereview/codereview.py: fix crash when hg gofmt has no files The gofmt function was returning a string, which isn't the right type. Three cheers for dynamic typing. R=golang-dev, bradfitz CC=golang-dev https://codereview.appspot.com/7917044
Rémy Oudompheng
cmd/gc: enable racewalk of HMUL nodes. A HMUL node appears in some constant divisions, but to observe a false negative in race detector the divisor must be suitably chosen to make sure the only memory access is done for HMUL. R=dvyukov CC=golang-dev https://codereview.appspot.com/7935045
Dave Cheney
doc: consistent path names in example Always use /home/you for $HOME in examples. Trivial enough that someone else can integrate this change if they are editing go1.1.html R=r CC=golang-dev https://codereview.appspot.com/8025043
Ian Lance Taylor
pkg/runtime: ignore runtime.memlimit when allocating heap For Go 1.1, stop checking the rlimit, because it broke now that mheap is allocated using SysAlloc. See issue 5049. R=r CC=golang-dev https://codereview.appspot.com/7741050
Robert Griesemer
godoc: internal cleanup: remove a TODO R=golang-dev, r CC=golang-dev https://codereview.appspot.com/8005044
Russ Cox
reflect: add garbage collection info in ChanOf, MapOf, PtrTo, SliceOf ArrayOf will remain unexported (and therefore unused) for Go 1.1. Fixes issue 4375. R=0xe2.0x9a.0x9b, r, iant CC=golang-dev https://codereview.appspot.com/7716048 Committer: Rob Pike <r@golang.org>
Rob Pike
doc/go1.1.html: net/mail, net/smtp R=golang-dev, bradfitz CC=golang-dev https://codereview.appspot.com/7835049
Carl Shapiro
runtime: ensure forward progress when unwinding an arm stack frame The arm gentraceback mishandled frame linkage values pointing to the assembly return function. This function is special as its frame size is zero and it contains only one instruction. These conditions would preserve the frame pointer and result in an off by one error when unwinding the caller. Fixes issue 5124 R=golang-dev, bradfitz CC=golang-dev https://codereview.appspot.com/8023043
Robert Griesemer
godoc: link identifiers to declarations The changes are almost completely self-contained in the new file linkify.go. The other changes are minimal and should not disturb the currently working godoc, in anticipation of Go 1.1. To disable the feature in case of problems, set -links=false. Fixes issue 2063. R=adg, r CC=golang-dev https://codereview.appspot.com/7883044
  1. Prev
  2. Next