summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Trommler <ptrommler@acm.org>2021-12-27 17:59:49 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-12-29 14:10:22 -0500
commit44a5507f6bbc5c87e486446d7f4486f7362748b4 (patch)
treed16dec3b94311b9279471ec0a8745e5dee470b38
parent8b6aafb229097e01d8c8fcf82949a8ef03b41f05 (diff)
downloadhaskell-44a5507f6bbc5c87e486446d7f4486f7362748b4.tar.gz
RTS: Fix CloneStack.c when no table next to code
Function `lookupIPE` does not modify its argument. Reflect this in the type. Module `CloneStack.c` relies on this for RTS without tables next to code. Fixes #20879
-rw-r--r--rts/IPE.c2
-rw-r--r--rts/include/rts/IPE.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/rts/IPE.c b/rts/IPE.c
index 19db89a063..faa2ab1ecb 100644
--- a/rts/IPE.c
+++ b/rts/IPE.c
@@ -157,7 +157,7 @@ void registerInfoProvList(InfoProvEnt **ent_list) {
RELEASE_LOCK(&ipeMapLock);
}
-InfoProvEnt *lookupIPE(StgInfoTable *info) {
+InfoProvEnt *lookupIPE(const StgInfoTable *info) {
updateIpeMap();
return lookupHashTable(ipeMap, (StgWord)info);
}
diff --git a/rts/include/rts/IPE.h b/rts/include/rts/IPE.h
index 07026979d8..0cfe3e2fb3 100644
--- a/rts/include/rts/IPE.h
+++ b/rts/include/rts/IPE.h
@@ -28,4 +28,4 @@ typedef struct InfoProvEnt_ {
} InfoProvEnt;
void registerInfoProvList(InfoProvEnt **cc_list);
-InfoProvEnt *lookupIPE(StgInfoTable *info);
+InfoProvEnt *lookupIPE(const StgInfoTable *info);