]> Cypherpunks repositories - gostls13.git/commit
[dev.cc] runtime: convert memory allocator and garbage collector to Go
authorRuss Cox <rsc@golang.org>
Tue, 11 Nov 2014 22:05:02 +0000 (17:05 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 11 Nov 2014 22:05:02 +0000 (17:05 -0500)
commit1e2d2f09470a2be58a98420b4cecae731b156ee8
tree4e787523cc5b7e166ff675e1d3da6b1da2207170
parentd98553a72782efb2d96c6d6f5e12869826a56779
[dev.cc] runtime: convert memory allocator and garbage collector to Go

The conversion was done with an automated tool and then
modified only as necessary to make it compile and run.

[This CL is part of the removal of C code from package runtime.
See golang.org/s/dev.cc for an overview.]

LGTM=r
R=r
CC=austin, dvyukov, golang-codereviews, iant, khr
https://golang.org/cl/167540043
30 files changed:
src/runtime/chan.go
src/runtime/heapdump.c [deleted file]
src/runtime/heapdump.go [new file with mode: 0644]
src/runtime/malloc.c [deleted file]
src/runtime/malloc.go
src/runtime/malloc.h [deleted file]
src/runtime/malloc1.go [new file with mode: 0644]
src/runtime/malloc2.go [new file with mode: 0644]
src/runtime/mcache.c [deleted file]
src/runtime/mcache.go [new file with mode: 0644]
src/runtime/mcentral.c [deleted file]
src/runtime/mcentral.go [new file with mode: 0644]
src/runtime/mem.go
src/runtime/mem_darwin.c [deleted file]
src/runtime/mem_darwin.go [new file with mode: 0644]
src/runtime/mem_linux.c [deleted file]
src/runtime/mem_linux.go [new file with mode: 0644]
src/runtime/mfixalloc.c [deleted file]
src/runtime/mfixalloc.go [new file with mode: 0644]
src/runtime/mgc.go [new file with mode: 0644]
src/runtime/mgc0.c [deleted file]
src/runtime/mgc0.go
src/runtime/mgc1.go [moved from src/runtime/mgc0.h with 73% similarity]
src/runtime/mheap.c [deleted file]
src/runtime/mheap.go [new file with mode: 0644]
src/runtime/mprof.go
src/runtime/msize.c [deleted file]
src/runtime/msize.go [new file with mode: 0644]
src/runtime/slice.go
src/runtime/string.go