summaryrefslogtreecommitdiff
path: root/rts/LinkerInternals.h
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2021-02-23 13:30:48 -0500
committerBen Gamari <ben@smart-cactus.org>2021-02-23 13:44:09 -0500
commitfe28a062e47bd914a6879f2d01ff268983c075ad (patch)
treee45e052102ac387caafab8a7ccad8e447f9b0db9 /rts/LinkerInternals.h
parentab571457b9960cc05d46d3ae6a3796e760766750 (diff)
downloadhaskell-fe28a062e47bd914a6879f2d01ff268983c075ad.tar.gz
rts: Make markLiveObject thread-safewip/T19417-ghc-8.10
markLiveObject is called by GC worker threads and therefore must be thread-safe. This was a rather egregious oversight which the testsuite missed.
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 1a83771439..8c977ce767 100644
--- a/rts/LinkerInternals.h
+++ b/rts/LinkerInternals.h
@@ -221,7 +221,7 @@ typedef 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`.