From 435ff39871776f73c946353689ea4f0305cc4501 Mon Sep 17 00:00:00 2001 From: Mann mit Hut Date: Fri, 9 Jul 2021 17:46:51 +0200 Subject: Corrected types of thread ids obtained from the RTS While the thread ids had been changed to 64 bit words in e57b7cc6d8b1222e0939d19c265b51d2c3c2b4c0 the return type of the foreign import function used to retrieve these ids - namely 'GHC.Conc.Sync.getThreadId' - was never updated accordingly. In order to fix that this function returns now a 'CUULong'. In addition to that the types used in the thread labeling subsystem were adjusted as well and several format strings were modified throughout the whole RTS to display thread ids in a consistent and correct way. Fixes #16761 --- rts/sm/Scav.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rts/sm') diff --git a/rts/sm/Scav.c b/rts/sm/Scav.c index b82eadd9cd..9316f395a8 100644 --- a/rts/sm/Scav.c +++ b/rts/sm/Scav.c @@ -103,7 +103,7 @@ scavengeTSO (StgTSO *tso) { bool saved_eager; - debugTrace(DEBUG_gc,"scavenging thread %d",(int)tso->id); + debugTrace(DEBUG_gc,"scavenging thread %" FMT_StgThreadID,tso->id); // update the pointer from the InCall. if (tso->bound != NULL) { -- cgit v1.2.1