Russ Cox
f84d5dd475
runtime: make panic possible before malloc is ready
...
Otherwise startup problems can be difficult to debug.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/7522046
2013-03-14 10:10:12 -04:00
Russ Cox
1903ad7189
cmd/gc, reflect, runtime: switch to indirect func value representation
...
Step 1 of http://golang.org/s/go11func .
R=golang-dev, r, daniel.morsing, remyoudompheng
CC=golang-dev
https://golang.org/cl/7393045
2013-02-21 17:01:13 -05:00
Dmitriy Vyukov
1e063eea38
runtime: prepare for M's running w/o mcache
...
Can not happen ATM. In preparation for the new scheduler.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/7388043
2013-02-20 21:17:56 +04:00
Dmitriy Vyukov
81221f512d
runtime: dump the full stack of a throwing goroutine
...
Useful for debugging of runtime bugs.
+ Do not print "stack segment boundary" unless GOTRACEBACK>1.
+ Do not traceback system goroutines unless GOTRACEBACK>1.
R=rsc, minux.ma
CC=golang-dev
https://golang.org/cl/7098050
2013-01-29 14:57:11 +04:00
Russ Cox
a22389ec38
runtime: say 'fatal error' instead of 'throw'
...
Fixes #4597 .
R=ken2
CC=golang-dev
https://golang.org/cl/7032043
2012-12-29 21:48:25 -05:00
Russ Cox
0de71619ce
runtime: aggregate defer allocations
...
benchmark old ns/op new ns/op delta
BenchmarkDefer 165 113 -31.52%
BenchmarkDefer10 155 103 -33.55%
BenchmarkDeferMany 216 158 -26.85%
benchmark old allocs new allocs delta
BenchmarkDefer 1 0 -100.00%
BenchmarkDefer10 1 0 -100.00%
BenchmarkDeferMany 1 0 -100.00%
benchmark old bytes new bytes delta
BenchmarkDefer 64 0 -100.00%
BenchmarkDefer10 64 0 -100.00%
BenchmarkDeferMany 64 66 3.12%
Fixes #2364 .
R=ken2
CC=golang-dev
https://golang.org/cl/7001051
2012-12-22 14:54:39 -05:00
Dmitriy Vyukov
a54f920bfe
runtime: move panic/defer/recover-related stuff to a separate file
...
Move panic/defer/recover-related stuff from proc.c/runtime.c to a new file panic.c.
No semantic changes.
proc.c is 1800+ LOC and is a bit difficult to work with.
R=golang-dev, dave, r
CC=golang-dev
https://golang.org/cl/6343071
2012-07-04 14:52:51 +04:00