[commit: ghc] master: rts: drop unused 'traceEventThreadRunnable' (0e51109)

git at git.haskell.org git at git.haskell.org
Sun Feb 7 20:28:42 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/0e51109d010c474f60f7b3209e399c115c7bcec7/ghc

>---------------------------------------------------------------

commit 0e51109d010c474f60f7b3209e399c115c7bcec7
Author: Sergei Trofimovich <siarheit at google.com>
Date:   Sun Feb 7 18:16:10 2016 +0000

    rts: drop unused 'traceEventThreadRunnable'
    
    Not used since:
    
        commit f361281c89fbce42865d8b8b27b0957205366186
        Author: Simon Marlow <marlowsd at gmail.com>
        Date:   Wed Dec 7 11:32:35 2011 +0000
    
            Do not emit the THREAD_RUNNABLE event; it has no useful semantic content
    
    Noticed by uselex.rb:
        traceEventThreadRunnable: [R]: exported from:
            ./rts/dist/build/Inlines.o
    
    Signed-off-by: Sergei Trofimovich <siarheit at google.com>


>---------------------------------------------------------------

0e51109d010c474f60f7b3209e399c115c7bcec7
 rts/Trace.h | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/rts/Trace.h b/rts/Trace.h
index 2c11a9f..e0d6f20 100644
--- a/rts/Trace.h
+++ b/rts/Trace.h
@@ -517,17 +517,6 @@ INLINE_HEADER void traceEventStopThread(Capability          *cap    STG_UNUSED,
                      (EventThreadStatus)status, (EventThreadID)info);
 }
 
-// needs to be EXTERN_INLINE as it is used in another EXTERN_INLINE function
-EXTERN_INLINE void traceEventThreadRunnable(Capability *cap STG_UNUSED,
-                                            StgTSO     *tso STG_UNUSED);
-
-EXTERN_INLINE void traceEventThreadRunnable(Capability *cap STG_UNUSED,
-                                            StgTSO     *tso STG_UNUSED)
-{
-    traceSchedEvent(cap, EVENT_THREAD_RUNNABLE, tso, 0);
-    dtraceThreadRunnable((EventCapNo)cap->no, (EventThreadID)tso->id);
-}
-
 INLINE_HEADER void traceEventMigrateThread(Capability *cap     STG_UNUSED,
                                            StgTSO     *tso     STG_UNUSED,
                                            nat         new_cap STG_UNUSED)



More information about the ghc-commits mailing list