]> Cypherpunks repositories - gostls13.git/commit
Use explicit allspan list instead of
authorRuss Cox <rsc@golang.org>
Wed, 28 Jan 2009 23:22:16 +0000 (15:22 -0800)
committerRuss Cox <rsc@golang.org>
Wed, 28 Jan 2009 23:22:16 +0000 (15:22 -0800)
commit9f726c2c8ba98d55935acc1143d2b792ca74e303
treeca165b4900d9d103778758fd1058a85d4658a235
parentcb659ece0e9a74dd330d774552a1f26c4a4d4ee3
Use explicit allspan list instead of
trying to find all the places where
spans might be recorded.

Free can cascade into complicated
span manipulations that move them
from list to list; the old code had the
possibility of accidentally processing
a span twice or jumping to a different
list, causing an infinite loop.

R=r
DELTA=70  (28 added, 25 deleted, 17 changed)
OCL=23704
CL=23710
src/runtime/Makefile
src/runtime/malloc.c
src/runtime/malloc.h
src/runtime/mfixalloc.c
src/runtime/mgc0.c
src/runtime/mheap.c
src/runtime/proc.c