]> Cypherpunks repositories - gostls13.git/commit
runtime: rewrite malloc in Go.
authorKeith Randall <khr@golang.org>
Wed, 30 Jul 2014 16:01:52 +0000 (09:01 -0700)
committerKeith Randall <khr@golang.org>
Wed, 30 Jul 2014 16:01:52 +0000 (09:01 -0700)
commit4aa50434e13d12eb9755a992d6d4ad93e201d624
tree16bdb1935477b9d70d443d2b1f5c0bcb4c636682
parentfe4fc94b044df5e6d08ad9e480f0bce70cc4e5d5
runtime: rewrite malloc in Go.

This change introduces gomallocgc, a Go clone of mallocgc.
Only a few uses have been moved over, so there are still
lots of uses from C. Many of these C uses will be moved
over to Go (e.g. in slice.goc), but probably not all.
What should remain of C's mallocgc is an open question.

LGTM=rsc, dvyukov
R=rsc, khr, dave, bradfitz, dvyukov
CC=golang-codereviews
https://golang.org/cl/108840046
26 files changed:
src/cmd/api/goapi.go
src/cmd/cc/godefs.c
src/cmd/gc/builtin.c
src/cmd/gc/runtime.go
src/cmd/gc/walk.c
src/pkg/runtime/asm_386.s
src/pkg/runtime/asm_amd64.s
src/pkg/runtime/asm_amd64p32.s
src/pkg/runtime/asm_arm.s
src/pkg/runtime/extern.go
src/pkg/runtime/hashmap.go
src/pkg/runtime/malloc.c [moved from src/pkg/runtime/malloc.goc with 74% similarity]
src/pkg/runtime/malloc.go [new file with mode: 0644]
src/pkg/runtime/malloc.h
src/pkg/runtime/mem.go
src/pkg/runtime/mgc0.c
src/pkg/runtime/mprof.goc
src/pkg/runtime/proc.c
src/pkg/runtime/race.go
src/pkg/runtime/runtime.h
src/pkg/runtime/string.go
src/pkg/runtime/stubs.go
src/pkg/runtime/stubs.goc
src/pkg/runtime/traceback_arm.c
src/pkg/runtime/traceback_x86.c
test/live.go