summaryrefslogtreecommitdiff
path: root/rts/LinkerInternals.h
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2021-02-23 18:30:48 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-03-04 23:15:48 -0500
commit9de44e57808e601f78eaafeaa4287666bf8bfb95 (patch)
treede6e681736966e0b8d1caed3bb19d4cd79c20029 /rts/LinkerInternals.h
parentf191fce702c4bfe251067807a8ad1aa1de7550b1 (diff)
downloadhaskell-9de44e57808e601f78eaafeaa4287666bf8bfb95.tar.gz
rts: Make markLiveObject thread-safe
markLiveObject is called by GC worker threads and therefore must be thread-safe. This was a rather egregious oversight which the testsuite missed. (cherry picked from commit fe28a062e47bd914a6879f2d01ff268983c075ad)
Diffstat (limited to 'rts/LinkerInternals.h')
-rw-r--r--rts/LinkerInternals.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/LinkerInternals.h b/rts/LinkerInternals.h
index 44fe337802..444849fbac 100644
--- a/rts/LinkerInternals.h
+++ b/rts/LinkerInternals.h
@@ -262,7 +262,7 @@ struct _ObjectCode {
struct _ObjectCode *next_loaded_object;
// Mark bit
- uint8_t mark;
+ StgWord mark;
// Set of dependencies (ObjectCode*) of the object file. Traverse
// dependencies using `iterHashTable`.