1
0
mirror of https://github.com/golang/go synced 2024-11-26 20:21:25 -07:00
go/src/cmd/ld
Russ Cox e7e5c5adb3 runtime: fix map memory leak
The map implementation was using the C idiom of using
a pointer just past the end of its table as a limit pointer.
Unfortunately, the garbage collector sees that pointer as
pointing at the block adjacent to the map table, pinning
in memory a block that would otherwise be freed.

Fix by making limit pointer point at last valid entry, not
just past it.

Reviewed by Mike Burrows.

R=golang-dev, bradfitz, lvd, r
CC=golang-dev
https://golang.org/cl/5158045
2011-10-01 13:00:53 -04:00
..
data.c runtime, syscall: use the vdso page on linux x86 for faster syscalls instead of int $0x80. 2011-08-29 10:36:06 -04:00
doc.go
dwarf_defs.h
dwarf.c runtime: fix map memory leak 2011-10-01 13:00:53 -04:00
dwarf.h
elf.c runtime: make arm work on Ubuntu Natty qemu 2011-08-31 07:02:46 -04:00
elf.h
go.c ld: fail linking if the top-level package is not main. 2011-08-02 07:45:04 -04:00
ldelf.c ld: fix build on Plan 9 2011-07-25 13:45:50 -04:00
ldmacho.c ld: fix build on Plan 9 2011-07-25 13:45:50 -04:00
ldpe.c ld: fix build on Plan 9 2011-07-25 13:45:50 -04:00
lib.c ld: handle Plan 9 ar format 2011-08-22 23:24:38 -04:00
lib.h 6l: OpenBSD support 2011-07-29 13:47:41 -04:00
macho.c
macho.h
pe.c runtime: implement exception handling on windows/amd64 2011-09-03 18:27:16 +10:00
pe.h
symtab.c ld: remove duplicate bss definitions 2011-08-22 23:23:57 -04:00