• Russ Cox's avatar
    runtime: fix map memory leak · e7e5c5ad
    Russ Cox authored
    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
    e7e5c5ad
Name
Last commit
Last update
..
data.c Loading commit data...
doc.go Loading commit data...
dwarf.c Loading commit data...
dwarf.h Loading commit data...
dwarf_defs.h Loading commit data...
elf.c Loading commit data...
elf.h Loading commit data...
go.c Loading commit data...
ldelf.c Loading commit data...
ldmacho.c Loading commit data...
ldpe.c Loading commit data...
lib.c Loading commit data...
lib.h Loading commit data...
macho.c Loading commit data...
macho.h Loading commit data...
pe.c Loading commit data...
pe.h Loading commit data...
symtab.c Loading commit data...