Duncan Coutts pushed to branch wip/io-manager-deadlock-detection at Glasgow Haskell Compiler / GHC

Commits:

2 changed files:

Changes:

  • rts/IOManager.c
    ... ... @@ -322,7 +322,7 @@ char * showIOManager(void)
    322 322
     CapIOManager *allocCapabilityIOManager(Capability *cap)
    
    323 323
     {
    
    324 324
         CapIOManager *iomgr = stgMallocBytes(sizeof(CapIOManager),
    
    325
    -		                         "allocCapabilityIOManager");
    
    325
    +                                         "allocCapabilityIOManager");
    
    326 326
         iomgr->cap = cap; /* link back */
    
    327 327
         return iomgr;
    
    328 328
     }
    

  • rts/Schedule.c
    ... ... @@ -851,6 +851,7 @@ schedulePushWork(Capability *cap USED_IF_THREADS,
    851 851
      * ------------------------------------------------------------------------- */
    
    852 852
     
    
    853 853
     /* Note [Deadlock detection]
    
    854
    +~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    854 855
     
    
    855 856
     For the purpose of this explanation we define:
    
    856 857
      * a /partial deadlock/ to be a set of threads that are deadlocked; and