]> Cypherpunks repositories - gostls13.git/commit
add support for ref counts to memory allocator.
authorRuss Cox <rsc@golang.org>
Fri, 5 Dec 2008 23:24:18 +0000 (15:24 -0800)
committerRuss Cox <rsc@golang.org>
Fri, 5 Dec 2008 23:24:18 +0000 (15:24 -0800)
commit3f8aa662e9710f821411dc9c6f0f0be8c756e40d
treeae9d666b764532276b207e1125d30252716ab014
parent73120ee81d2f4755bcbf03ea6b4c127afc141047
add support for ref counts to memory allocator.

mark and sweep, stop the world garbage collector
(intermediate step in the way to ref counting).
can run pretty with an explicit gc after each file.

R=r
DELTA=502  (346 added, 143 deleted, 13 changed)
OCL=20630
CL=20635
12 files changed:
src/runtime/Makefile
src/runtime/mem.c [new file with mode: 0644]
src/runtime/proc.c
src/runtime/runtime.c
src/runtime/runtime.h
src/runtime/stack.c [deleted file]
usr/rsc/mem/Makefile
usr/rsc/mem/allocator.go
usr/rsc/mem/malloc.c
usr/rsc/mem/malloc.h
usr/rsc/mem/mem.c [moved from usr/rsc/mem/stack.c with 65% similarity]
usr/rsc/mem/testrandom.go