]> Cypherpunks repositories - gostls13.git/commit
runtime: get rid of free
authorDmitriy Vyukov <dvyukov@google.com>
Thu, 31 Jul 2014 08:55:40 +0000 (12:55 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Thu, 31 Jul 2014 08:55:40 +0000 (12:55 +0400)
commitcecca43804e0bd795581b6ec6a376509ed5fea05
tree9191435c3e8045795565382e800410692df81782
parent17992f7a06c99b85429aa16118388551a7cc38bb
runtime: get rid of free
Several reasons:
1. Significantly simplifies runtime.
2. This code proved to be buggy.
3. Free is incompatible with bump-the-pointer allocation.
4. We want to write runtime in Go, Go does not have free.
5. Too much code to free env strings on startup.

LGTM=khr
R=golang-codereviews, josharian, tracey.brendan, khr
CC=bradfitz, golang-codereviews, r, rlh, rsc
https://golang.org/cl/116390043
src/pkg/runtime/env_posix.c
src/pkg/runtime/malloc.c
src/pkg/runtime/malloc.h
src/pkg/runtime/mcache.c
src/pkg/runtime/mcentral.c
src/pkg/runtime/mgc0.c
src/pkg/runtime/mheap.c
src/pkg/runtime/panic.c
src/pkg/runtime/proc.c
src/pkg/runtime/runtime.h
src/pkg/runtime/time.goc