t.Errorf("offset of %q within struct is %d bytes, which does not align to 64-bit word boundaries (missing %d bytes). Atomic operations will crash on 32-bit systems.",name,offset,8-(offset%8))
}
}
// TestRateJugglerAlignment checks that atomically-accessed fields are
// aligned to 64-bit boundaries, as required by the atomic package.
//
// Unfortunately, violating this rule on 32-bit platforms results in a
// hard segfault at runtime.
funcTestRateJugglerAlignment(t*testing.T){
varrrateJuggler
typ:=reflect.TypeOf(&r).Elem()
t.Logf("Peer type size: %d, with fields:",typ.Size())