aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/runtime.h
diff options
context:
space:
mode:
authorDmitriy Vyukov <dvyukov@google.com>2013-03-10 20:46:11 +0400
committerDmitriy Vyukov <dvyukov@google.com>2013-03-10 20:46:11 +0400
commit433824d8086e5ab906103d93f58e09a76e3a6b3e (patch)
tree55f809400fbf70d7e60491ff563090e8f09c77ac /src/pkg/runtime/runtime.h
parent8d51c330122a88a7f6644580c6907ca634357f16 (diff)
downloadgo-433824d8086e5ab906103d93f58e09a76e3a6b3e.tar.xz
runtime: fix misaligned 64-bit atomic
Fixes #4869. Fixes #5007. Update #5005. R=golang-dev, 0xe2.0x9a.0x9b, bradfitz CC=golang-dev https://golang.org/cl/7534044
Diffstat (limited to 'src/pkg/runtime/runtime.h')
-rw-r--r--src/pkg/runtime/runtime.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h
index 8ae6e6a6c9..d9afd5b796 100644
--- a/src/pkg/runtime/runtime.h
+++ b/src/pkg/runtime/runtime.h
@@ -483,6 +483,7 @@ struct ParFor
bool wait; // if true, wait while all threads finish processing,
// otherwise parfor may return while other threads are still working
ParForThread *thr; // array of thread descriptors
+ uint32 pad; // to align ParForThread.pos for 64-bit atomic operations
// stats
uint64 nsteal;
uint64 nstealcnt;