Robert Obryk
44b7d5b41a
test/stress: fix a goroutine leak in threadRing stresstest
...
Fixes #5527
R=golang-dev, dvyukov
CC=golang-dev
https://golang.org/cl/9955043
2013-06-03 07:07:31 -07:00
Rémy Oudompheng
0d0d57ccfe
cmd/gc: do not corrupt init() with initializers of _ in closures.
...
Fixes #5607 .
R=golang-dev, daniel.morsing, r, dsymonds
CC=golang-dev
https://golang.org/cl/9952043
2013-06-02 23:54:34 +02:00
Rémy Oudompheng
2c1acc18f4
test: correct sizeof.go.
...
It would not pass on amd64 due to alignment of pointers.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/9949043
2013-06-02 19:10:11 +02:00
Daniel Morsing
bf9a00bc8f
cmd/gc: fix overflow in array bounds calculation.
...
Fixes #5609 .
R=golang-dev, remyoudompheng, r
CC=golang-dev
https://golang.org/cl/9757045
2013-06-01 16:33:54 +02:00
Rob Pike
9bdb7e1967
test/bench/shootout/timing.log: update to Go 1.1
...
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/9656045
2013-05-23 17:57:28 -07:00
Rémy Oudompheng
3577398f82
test: add test for issue 3888.
...
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/9676043
2013-05-22 22:45:38 +02:00
Shenghou Ma
1beb791934
test/errchk: use "#!/usr/bin/env perl" shebang line
...
fix test failure of go.tools sub-repo on NetBSD.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/9662044
2013-05-23 04:41:22 +08:00
Daniel Morsing
6f5af9c0b1
cmd/gc: fix confusing error with broken types and defer/go
...
Fixes #5172 .
R=golang-dev, bradfitz, r
CC=golang-dev
https://golang.org/cl/9614044
2013-05-21 18:35:47 +02:00
Dmitriy Vyukov
910bd157c9
test: do not run the test that relies on precise GC on 32-bits
...
Currently most of the 32-bit builder are broken.
Fixes #5516 .
R=golang-dev, dave, iant
CC=golang-dev
https://golang.org/cl/9573043
2013-05-20 21:53:16 +04:00
Dmitriy Vyukov
1308194204
runtime: zeroize g->fnstart to not prevent GC of the closure
...
Fixes #5493 .
R=golang-dev, minux.ma, iant
CC=golang-dev
https://golang.org/cl/9557043
2013-05-20 08:17:21 +04:00
Rémy Oudompheng
78f5b616fc
cmd/gc: repair make(T) in export data for inlining.
...
When T was an unexported type it could be forgotten.
Fixes #5470 .
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/9303050
2013-05-16 09:01:43 +02:00
Jan Ziak
13cbf41a7f
cmd/gc: initialize t->width in dgcsym() if required
...
Update #5291 .
R=golang-dev, daniel.morsing, iant, r
CC=golang-dev
https://golang.org/cl/8663052
2013-04-25 18:47:12 +02:00
Jan Ziak
db1c218d4f
undo CL 8954044 / ad3c2ffb16d7
...
It works on i386, but fails on amd64 and arm.
««« original CL description
runtime: prevent the GC from seeing the content of a frame in runfinq()
Fixes #5348 .
R=golang-dev, dvyukov
CC=golang-dev
https://golang.org/cl/8954044
»»»
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/8695051
2013-04-25 18:12:09 +02:00
Jan Ziak
e9bbe3a8da
runtime: prevent the GC from seeing the content of a frame in runfinq()
...
Fixes #5348 .
R=golang-dev, dvyukov
CC=golang-dev
https://golang.org/cl/8954044
2013-04-25 13:39:09 +02:00
Ian Lance Taylor
578dc3a96c
cmd/5g, cmd/6g, cmd/8g: more nil ptr to large struct checks
...
R=r, ken, khr, daniel.morsing
CC=dsymonds, golang-dev, rickyz
https://golang.org/cl/8925043
2013-04-24 08:13:01 -07:00
Brad Fitzpatrick
b3809cae5e
test/stress: start of a runtime stress program
...
Runs forever, stressing the runtime in various ways.
It should never terminate.
R=golang-dev, r, minux.ma
CC=golang-dev
https://golang.org/cl/8583047
2013-04-15 11:50:14 -07:00
Daniel Morsing
7b8e08617e
cmd/gc: disable inlining of method values
...
They caused internal compiler errors and they're expensive enough that inlining them doesn't make sense.
Fixes #5259 .
R=golang-dev, r, iant, remyoudompheng
CC=golang-dev
https://golang.org/cl/8636043
2013-04-13 08:22:16 +02:00
Carl Shapiro
4925f8aa79
test: make goprint.go wait longer for go its routine to execute
...
Update #5281
R=golang-dev, r, bradfitz, cshapiro
CC=golang-dev
https://golang.org/cl/8631047
2013-04-12 16:04:19 -07:00
Carl Shapiro
14cb1a1da9
test: raise the allocation threshold for chan/select2.go failure
...
Updates #5282
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/8718045
2013-04-12 15:58:34 -07:00
Volker Dobler
a9f1569e7b
gc: escape unicode BOM in exported string literals
...
Fixes #5260 .
R=golang-dev, minux.ma, 0xjnml, r
CC=golang-dev
https://golang.org/cl/8658043
2013-04-11 11:45:18 -07:00
Brad Fitzpatrick
1d729b7f59
test: fix mapnan.go build tag
...
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/8491044
2013-04-08 00:09:35 -07:00
Rémy Oudompheng
20e05303fe
cmd/gc: properly set variadic flag on method values.
...
Fixes #5231 .
R=golang-dev, daniel.morsing, adg
CC=golang-dev
https://golang.org/cl/8275044
2013-04-08 08:59:33 +02:00
Brad Fitzpatrick
5e21cb7865
test: fix flaky NaN-key map complexity test
...
Don't measure wall time in map.go. Keep it portable
and only test NaN, but not time.
Move time tests to mapnan.go and only measure user CPU time,
not wall time. It builds on Darwin and Linux, the primary
platforms where people hack on the runtime & in particular
maps. The runtime is shared, though, so we don't need it to
run on all of the platforms.
Fixes flaky build failures like:
http://build.golang.org/log/ba67eceefdeaa1142cb6c990a62fa3ffd8fd73f8
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/8479043
2013-04-07 11:56:15 -07:00
Rémy Oudompheng
2d3216f4a8
cmd/gc: fix Offsetof computation.
...
The offset of an embedded field s.X must be relative to s
and not to the implicit s.Field of which X is a direct field.
Moreover, no indirections may happen on the path.
Fixes #4909 .
R=nigeltao, ality, daniel.morsing, iant, gri, r
CC=golang-dev
https://golang.org/cl/8287043
2013-04-05 21:24:07 +02:00
Rémy Oudompheng
4b6ca21271
cmd/gc: be more tolerant with recursive types when checking map types.
...
A nested TFORW type would push algtype1 into an impossible case.
Fixes #5125 .
R=golang-dev, daniel.morsing
CC=golang-dev
https://golang.org/cl/8213043
2013-04-03 08:18:30 +02:00
Rémy Oudompheng
df9f4f14b9
cmd/gc: do not reuse bool temporaries for composite equality.
...
Reusing it when multiple comparisons occurred in the same
function call led to bad overwriting.
Fixes #5162 .
R=golang-dev, daniel.morsing
CC=golang-dev
https://golang.org/cl/8174047
2013-04-01 21:01:50 +02:00
Rémy Oudompheng
d815a14718
cmd/5l, cmd/6l, cmd/8l: fix segfault on reading LOCALS for a duplicate definition.
...
Fixes #5105 .
R=golang-dev, dave, daniel.morsing, rsc
CC=golang-dev
https://golang.org/cl/7965043
2013-03-25 22:09:55 +01:00
Russ Cox
ba0dd1f139
cmd/gc: fix line number for 'missing return' in closure
...
R=ken2
CC=golang-dev
https://golang.org/cl/7838048
2013-03-22 17:50:29 -04:00
Russ Cox
b5cfbda212
cmd/vet: add assembly checker
...
Fixes #5036 .
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/7531045
2013-03-22 15:14:40 -04:00
Robert Griesemer
f8ff6893a5
test: more systematic shift tests
...
To be submitted once gc agrees.
R=rsc, iant, remyoudompheng
CC=golang-dev
https://golang.org/cl/7861045
2013-03-21 16:56:59 -07:00
Rémy Oudompheng
88b98ff791
cmd/gc: accept ideal float as indices.
...
Fixes #4813 .
R=golang-dev, daniel.morsing, rsc
CC=golang-dev
https://golang.org/cl/7625050
2013-03-22 00:38:23 +01:00
Russ Cox
38e9b0773d
cmd/gc: fix escape analysis of method values
...
R=ken2
CC=golang-dev
https://golang.org/cl/7518050
2013-03-20 23:53:27 -04:00
Daniel Morsing
7c3694c4de
cmd/gc: reject methods on non-locals, even if symbol exists
...
Fixes #5089 .
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/7767044
2013-03-20 22:18:20 +01:00
Russ Cox
d3c758d7d2
cmd/gc: implement method values
...
R=ken2, ken
CC=golang-dev
https://golang.org/cl/7546052
2013-03-20 17:11:09 -04:00
Daniel Morsing
2667dcd113
cmd/gc: steal escape analysis info when inlining
...
Usually, there is no esc info when inlining, but there will be when generating inlined wrapper functions.
If we don't use this information, we get invalid addresses on the stack.
Fixes #5056 .
R=golang-dev, rsc
CC=golang-dev, remyoudompheng
https://golang.org/cl/7850045
2013-03-18 22:22:35 +01:00
Rémy Oudompheng
861aa4698a
cmd/gc: missing type inference for untyped complex() calls.
...
Fixes #5014 .
R=golang-dev, r, rsc, daniel.morsing
CC=golang-dev
https://golang.org/cl/7664043
2013-03-16 00:37:28 +01:00
Russ Cox
615f289209
cmd/gc: ensure unique parameter and result names in function types
...
In addition to fixing the bug, the check is now linear instead of quadratic.
Fixes #4469 .
R=ken2
CC=golang-dev
https://golang.org/cl/7773047
2013-03-15 15:24:13 -04:00
Rémy Oudompheng
20c7e41555
cmd/gc: fix escape analysis bug.
...
It used to not mark parameters as escaping if only one of the
fields it points to leaks out of the function. This causes
problems when importing from another package.
Fixes #4964 .
R=rsc, lvd, dvyukov, daniel.morsing
CC=golang-dev
https://golang.org/cl/7648045
2013-03-15 09:03:45 +01:00
Tyler Bunnell
f6a952599e
cmd/gc: disallow fallthrough in final case of switch
...
Small change to cmd/gc to catch a "fallthrough" in the final case of a switch.
R=golang-dev, rsc, mtj
CC=golang-dev
https://golang.org/cl/7841043
2013-03-15 00:35:09 -04:00
Rob Pike
d526e5e79c
go/test/bench/go1: add regexp test
...
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7480047
2013-03-12 16:50:10 -07:00
Brad Fitzpatrick
ba6ea4a95c
test/bench/go1: add http test
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/7529048
2013-03-12 16:46:38 -07:00
Jan Ziak
4e6e9f9b28
test/bench/garbage: fix parser benchmark
...
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7762046
2013-03-12 22:25:15 +01:00
Rob Pike
05403fa8fb
go/test/bench/go1: add printf and time format tests
...
Also rename the go parser test to GoParse so it doesn't grab the globally useful Parse name.
R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/7732044
2013-03-11 17:17:25 -07:00
Rémy Oudompheng
401e0fea3a
cmd/gc: reject complex calls with mismatched argument types.
...
The specification says "the two arguments must be of the same
floating-point type."
R=rsc, gri
CC=golang-dev
https://golang.org/cl/7671045
2013-03-11 22:55:14 +01:00
Rémy Oudompheng
4c203172a2
cmd/8g: fix code generation of int64(0) == int64(0).
...
The code would violate the contract of cmp64.
Fixes #5002 .
R=rsc, golang-dev
CC=golang-dev
https://golang.org/cl/7593043
2013-03-07 21:47:45 +01:00
Russ Cox
ecab408c42
cmd/gc: implement new return requirements
...
Fixes #65 .
R=ken2
CC=golang-dev
https://golang.org/cl/7441049
2013-03-04 17:02:04 -05:00
Shenghou Ma
13075ed416
test/bench/go1: use raw string instead of string addition
...
to reduce compile time memory/stack usage.
Update #4970
$ go test -c ../test/bench/go1
before:
0.36user 0.07system 0:00.44elapsed 100%CPU
(0avgtext+0avgdata 540720maxresident)k
0inputs+19840outputs (0major+56451minor)pagefaults 0swaps
after:
0.33user 0.05system 0:00.39elapsed 100%CPU
(0avgtext+0avgdata 289936maxresident)k
0inputs+19864outputs (0major+29615minor)pagefaults 0swaps
And stack usage is reduced to below 1MiB.
R=golang-dev, r, dave
CC=golang-dev
https://golang.org/cl/7436050
2013-03-05 04:23:37 +08:00
Daniel Morsing
b65acaeab2
cmd/gc: disallow selectors to the blank identifier
...
Fixes #4941 .
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/7415051
2013-03-04 17:01:42 +01:00
Rémy Oudompheng
a85fce282e
cmd/gc: simplify and fix defaultlit.
...
Fixes #4882 .
Fixes #4936 .
Fixes #4937 .
R=golang-dev, dave, daniel.morsing, rsc
CC=golang-dev
https://golang.org/cl/7432044
2013-03-04 16:51:42 +01:00
Jan Ziak
66a9372976
test/bench/garbage: fix parser benchmark
...
R=golang-dev, dvyukov
CC=golang-dev
https://golang.org/cl/7435053
2013-03-04 16:46:04 +01:00