summaryrefslogtreecommitdiff
path: root/rts/sm/HeapAlloc.h
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-11-03 11:58:50 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-11-05 02:46:10 -0500
commitd57059f72ed9a34f0589beac4feb41f8738dfdea (patch)
treeb728b8c0f3fde9b561012cf2ec0270fa5b9a954a /rts/sm/HeapAlloc.h
parent7c28087a479e5ce0d3113aa4ebb9068d9e2a5a7b (diff)
downloadhaskell-d57059f72ed9a34f0589beac4feb41f8738dfdea.tar.gz
rts: Add missing const in HEAP_ALLOCED_GC
This was previously unnoticed as this code-path is hit on very few platforms (e.g. OpenBSD).
Diffstat (limited to 'rts/sm/HeapAlloc.h')
-rw-r--r--rts/sm/HeapAlloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/sm/HeapAlloc.h b/rts/sm/HeapAlloc.h
index cd41adfe4d..58aae1119d 100644
--- a/rts/sm/HeapAlloc.h
+++ b/rts/sm/HeapAlloc.h
@@ -192,7 +192,7 @@ StgBool HEAP_ALLOCED(const void *p)
// updated atomically, but we need to place a lock around operations
// that touch the MBlock map.
INLINE_HEADER
-StgBool HEAP_ALLOCED_GC(void *p)
+StgBool HEAP_ALLOCED_GC(const void *p)
{
StgWord mblock;
uint32_t entry_no;