summaryrefslogtreecommitdiff
path: root/includes/rts
diff options
context:
space:
mode:
authorKarel Gardas <karel.gardas@centrum.cz>2015-02-14 22:46:47 +0100
committerKarel Gardas <karel.gardas@centrum.cz>2015-02-23 10:27:37 +0100
commitb2be772a97f6e7fe9f1d1c28108949f81a13158b (patch)
tree86ab34834027222796365549d46a5e818eea4a4b /includes/rts
parent1f60d635cee1ff3db72e0129f9035b147f52c9c4 (diff)
downloadhaskell-b2be772a97f6e7fe9f1d1c28108949f81a13158b.tar.gz
fix bus errors on SPARC caused by unalignment access to alloc_limit (fixes #10043)
Reviewers: austin, simonmar Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D657
Diffstat (limited to 'includes/rts')
-rw-r--r--includes/rts/storage/TSO.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/rts/storage/TSO.h b/includes/rts/storage/TSO.h
index 06056fe716..744ab2b519 100644
--- a/includes/rts/storage/TSO.h
+++ b/includes/rts/storage/TSO.h
@@ -155,6 +155,9 @@ typedef struct StgTSO_ {
* This is an integer, because we might update it in a place where
* it isn't convenient to raise the exception, so we want it to
* stay negative until we get around to checking it.
+ *
+ * Use only PK_Int64/ASSIGN_Int64 macros to get/set the value of alloc_limit
+ * in C code otherwise you will cause alignment issues on SPARC
*/
StgInt64 alloc_limit; /* in bytes */