aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/runtime')
-rw-r--r--src/pkg/runtime/chan.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pkg/runtime/chan.h b/src/pkg/runtime/chan.h
index 52eb20099d..30825eafad 100644
--- a/src/pkg/runtime/chan.h
+++ b/src/pkg/runtime/chan.h
@@ -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