Commit 99080c4b authored by Dmitriy Vyukov's avatar Dmitriy Vyukov

runtime: fix chan alignment on 32 bits

LGTM=dave
R=golang-codereviews, dave
CC=golang-codereviews, khr, rsc
https://golang.org/cl/128700043
parent 20e97677
......@@ -21,6 +21,9 @@ struct Hchan
byte* buf;
uint16 elemsize;
uint32 closed;
#ifndef GOARCH_amd64
uint32 pad; // ensures proper alignment of the buffer that follows Hchan in memory
#endif
Type* elemtype; // element type
uintgo sendx; // send index
uintgo recvx; // receive index
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment