1
0
mirror of https://github.com/golang/go synced 2024-10-06 09:21:21 -06:00
go/src/cmd/6c
Dave Cheney f701e1c320 cmd/6c, cmd/8c: fix stack allocated Biobuf leaking at exit
Fixes #5085.

{6,8}c/swt.c allocates a third Biobuf in automatic memory which is not terminated at the end of the function. This causes the buffer to be 'in use' when the batexit handler fires, confusing valgrind.

Huge thanks to DMorsing for the diagnosis.

R=golang-dev, daniel.morsing, rsc
CC=golang-dev
https://golang.org/cl/7844044
2013-03-20 23:42:00 +11:00
..
cgen.c cmd/6c: Optimize rotate expressions to use rotate instructions. 2013-01-18 17:29:53 -05:00
div.c various: avoid %ld etc 2010-10-13 16:20:22 -04:00
doc.go cmd/godoc: use go/build to determine package and example files 2013-02-19 11:19:58 -08:00
gc.h cmd/{5g,6g,8g,6c}: remove unused macro, use %E to print etype. 2012-09-24 23:44:00 +02:00
list.c cmd/6c, cmd/8c: fix print format for Prog 2013-01-18 19:00:38 -08:00
machcap.c move 6c/pgen.c, 6c/pswt.c into cc 2009-07-07 10:07:15 -07:00
Makefile build: delete make paraphernalia 2012-02-06 13:34:25 -05:00
mul.c cmd/6c, cmd/8c: use signed char explicitly in mul.c 2012-11-09 21:06:45 +01:00
peep.c cmd/6c: Improve peep hole optimization of rotate and shift instructions. 2013-01-18 16:33:25 -05:00
reg.c cmd/6c, cmd/8c: add fixjmp step to regopt. 2012-12-06 07:20:03 +01:00
sgen.c cmd/6c, cmd/6g: add flag to support large-model code generation 2013-02-01 08:35:33 -08:00
swt.c cmd/6c, cmd/8c: fix stack allocated Biobuf leaking at exit 2013-03-20 23:42:00 +11:00
txt.c cmd/6c: Optimize rotate expressions to use rotate instructions. 2013-01-18 17:29:53 -05:00