]> Cypherpunks repositories - gostls13.git/commit
runtime: reorganize memory code
authorRuss Cox <rsc@golang.org>
Thu, 19 Feb 2015 18:38:46 +0000 (13:38 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 19 Feb 2015 20:17:01 +0000 (20:17 +0000)
commit484f801ff4125d86f8c4072f070611afea9c79f7
tree6609ead9e0e6dabd5565800a5c5f80a89211ef75
parentd384545a4580cf1f6990efee5f0047ec60f4258d
runtime: reorganize memory code

Move code from malloc1.go, malloc2.go, mem.go, mgc0.go into
appropriate locations.

Factor mgc.go into mgc.go, mgcmark.go, mgcsweep.go, mstats.go.

A lot of this code was in certain files because the right place was in
a C file but it was written in Go, or vice versa. This is one step toward
making things actually well-organized again.

Change-Id: I6741deb88a7cfb1c17ffe0bcca3989e10207968f
Reviewed-on: https://go-review.googlesource.com/5300
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Rick Hudson <rlh@golang.org>
20 files changed:
src/runtime/heapdump.go
src/runtime/malloc.go
src/runtime/malloc1.go [deleted file]
src/runtime/malloc2.go [deleted file]
src/runtime/mbitmap.go
src/runtime/mcache.go
src/runtime/mcentral.go
src/runtime/mem.go [deleted file]
src/runtime/mfinal.go
src/runtime/mfixalloc.go
src/runtime/mgc.go
src/runtime/mgc0.go [deleted file]
src/runtime/mgcmark.go [new file with mode: 0644]
src/runtime/mgcsweep.go [new file with mode: 0644]
src/runtime/mheap.go
src/runtime/msize.go
src/runtime/mstats.go [new file with mode: 0644]
src/runtime/proc1.go
src/runtime/stubs.go
src/runtime/symtab.go