]> Cypherpunks repositories - gostls13.git/commit
runtime: adjust traceback / garbage collector boundary
authorRuss Cox <rsc@golang.org>
Wed, 12 Jun 2013 12:49:38 +0000 (08:49 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 12 Jun 2013 12:49:38 +0000 (08:49 -0400)
commite58f798c0c97c252e0b800a4223d20790ef6b166
tree0a5611f4e3ea22708feef51a33c8862bf0e773e7
parent7ea75a5f188ff23fee5130199e89408c52ee59d1
runtime: adjust traceback / garbage collector boundary

The garbage collection routine addframeroots is duplicating
logic in the traceback routine that calls it, sometimes correctly,
sometimes incorrectly, sometimes incompletely.
Pass necessary information to addframeroots instead of
deriving it anew.

Should make addframeroots significantly more robust.
It's certainly smaller.

Also try to standardize on uintptr for saved pc, sp values.

Will make CL 10036044 trivial.

R=golang-dev, dave, dvyukov
CC=golang-dev
https://golang.org/cl/10169045
src/pkg/runtime/mgc0.c
src/pkg/runtime/mprof.goc
src/pkg/runtime/panic.c
src/pkg/runtime/proc.c
src/pkg/runtime/runtime.h
src/pkg/runtime/signal_386.c
src/pkg/runtime/signal_amd64.c
src/pkg/runtime/signal_arm.c
src/pkg/runtime/stack.c
src/pkg/runtime/traceback_arm.c
src/pkg/runtime/traceback_x86.c