summaryrefslogtreecommitdiff
path: root/rts/RtsSymbols.c
diff options
context:
space:
mode:
authorRoland Zumkeller <Roland.Zumkeller@gmail.com>2019-06-22 19:35:07 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-11-19 20:39:19 -0500
commitd1f3c63701b7f0fd675f792af7f33c5b11eaff83 (patch)
tree077460cd5f8cf6525908c08cc4a6f4e3ade441a6 /rts/RtsSymbols.c
parente57b7cc6d8b1222e0939d19c265b51d2c3c2b4c0 (diff)
downloadhaskell-d1f3c63701b7f0fd675f792af7f33c5b11eaff83.tar.gz
Use pointer equality in Eq/Ord for ThreadId
Changes (==) to use only pointer equality. This is safe because two threads are the same iff they have the same id. Changes `compare` to check pointer equality first and fall back on ids only in case of inequality. See discussion in #16761.
Diffstat (limited to 'rts/RtsSymbols.c')
-rw-r--r--rts/RtsSymbols.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rts/RtsSymbols.c b/rts/RtsSymbols.c
index b2f90a892d..aef49606b3 100644
--- a/rts/RtsSymbols.c
+++ b/rts/RtsSymbols.c
@@ -606,6 +606,7 @@
SymI_HasProto(stg_compactFixupPointerszh) \
SymI_HasProto(stg_compactSizzezh) \
SymI_HasProto(closure_flags) \
+ SymI_HasProto(eq_thread) \
SymI_HasProto(cmp_thread) \
SymI_HasProto(createAdjustor) \
SymI_HasProto(stg_decodeDoublezu2Intzh) \