]> Cypherpunks repositories - gostls13.git/commit
runtime: merge mallocgc, gomallocgc
authorRuss Cox <rsc@golang.org>
Tue, 9 Sep 2014 05:08:34 +0000 (01:08 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 9 Sep 2014 05:08:34 +0000 (01:08 -0400)
commitbffb0590c1e1125830377165eb98bf1b73bb016e
treeb8a7f8e9ef3b9bfdb53c2c7aea4ca6d95193d46b
parent0f99a91bb56dd01dfd4e5ce4344e6006e3463ade
runtime: merge mallocgc, gomallocgc

I assumed they were the same when I wrote
cgocallback.go earlier today. Merge them
to eliminate confusion.

I can't tell what gomallocgc did before with
a nil type but without FlagNoScan.
I created a call like that in cgocallback.go
this morning, translating from a C file.
It was supposed to do what the C version did,
namely treat the block conservatively.
Now it will.

LGTM=khr
R=khr
CC=golang-codereviews
https://golang.org/cl/141810043
13 files changed:
src/runtime/cgocallback.go
src/runtime/chan.go
src/runtime/malloc.c
src/runtime/malloc.go
src/runtime/mgc0.c
src/runtime/os_plan9.c
src/runtime/os_windows.c
src/runtime/panic.go
src/runtime/parfor.c
src/runtime/proc.c
src/runtime/runtime.c
src/runtime/select.go
src/runtime/string.go