Fixes compilation of runtime on Solaris where the inner struct
was not called "_4_".
LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/
129460043
ok = true
idx := 0
for b := bbuckets; b != nil; b = b.allnext {
- bp := (*_4_)(unsafe.Pointer(&b.data))
+ bp := (*bprofrecord)(unsafe.Pointer(&b.data))
p[idx].Count = int64(bp.count)
p[idx].Cycles = int64(bp.cycles)
i := 0
// this one is fine because it does not contain pointers.
union
{
- struct // typ == MProf
+ struct MProfRecord // typ == MProf
{
// The following complex 3-stage scheme of stats accumulation
// is required to obtain a consistent picture of mallocs and frees
uintptr recent_free_bytes;
} mp;
- struct // typ == BProf
+ struct BProfRecord // typ == BProf
{
int64 count;
int64 cycles;