runtime: merge slice and sliceStruct

By removing type slice, renaming type sliceStruct to type slice and
whacking until it compiles.

Has a pleasing net reduction of conversions.

Fixes #10188

Change-Id: I77202b8df637185b632fd7875a1fdd8d52c7a83c
Reviewed-on: https://go-review.googlesource.com/8770
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Michael Hudson-Doyle 2015-04-11 10:01:54 +12:00 committed by Ian Lance Taylor
parent f7be77e5b6
commit ab4df700b8
10 changed files with 36 additions and 46 deletions

View file

@ -87,12 +87,6 @@ type eface struct {
data unsafe.Pointer
}
type slice struct {
array *byte // actual data
len uint // number of elements
cap uint // allocated number of elements
}
// A guintptr holds a goroutine pointer, but typed as a uintptr
// to bypass write barriers. It is used in the Gobuf goroutine state.
//