diff options
author | Ben Gamari <ben@smart-cactus.org> | 2021-02-23 18:30:48 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-03-04 23:15:48 -0500 |
commit | 9de44e57808e601f78eaafeaa4287666bf8bfb95 (patch) | |
tree | de6e681736966e0b8d1caed3bb19d4cd79c20029 /rts/LinkerInternals.h | |
parent | f191fce702c4bfe251067807a8ad1aa1de7550b1 (diff) | |
download | haskell-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.h | 2 |
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`. |