1. 20 Jul, 2010 3 commits
  2. 16 Jul, 2010 1 commit
    • Simon Marlow's avatar
      Use a separate mutex to protect all_tasks, avoiding a lock-order-reversal · ed301949
      Simon Marlow authored
      In GHC 6.12.x I found a rare deadlock caused by this
      lock-order-reversal:
      
      AQ cap->lock
        startWorkerTask
          newTask
            AQ sched_mutex
      
      scheduleCheckBlackHoles
        AQ sched_mutex
         unblockOne_
          wakeupThreadOnCapabilty
            AQ cap->lock
      
      so sched_mutex and cap->lock are taken in a different order in two
      places.
      
      This doesn't happen in the HEAD because we don't have
      scheduleCheckBlackHoles, but I thought it would be prudent to make
      this less likely to happen in the future by using a different mutex in
      newTask.  We can clearly see that the all_tasks mutex cannot be
      involved in a deadlock, becasue we never call anything else while
      holding it.
      ed301949
  3. 15 Jul, 2010 1 commit
  4. 19 Jul, 2010 2 commits
  5. 18 Jul, 2010 1 commit
  6. 15 Jul, 2010 1 commit
  7. 17 Jul, 2010 5 commits
  8. 16 Jul, 2010 6 commits
  9. 15 Jul, 2010 6 commits
  10. 14 Jul, 2010 4 commits
  11. 13 Jul, 2010 6 commits
  12. 07 Jul, 2010 2 commits
  13. 01 Jul, 2010 1 commit
    • simonpj@microsoft.com's avatar
      Fix second bug in Trac #4127 · 2c183f9b
      simonpj@microsoft.com authored
      This bug concerned the awkward shadowing we do for 
      Template Haskell declaration brackets.  Lots of
      comments in 
      
        Note [Top-level Names in Template Haskell decl quotes]
      2c183f9b
  14. 09 Jul, 2010 1 commit
    • Sergei Trofimovich's avatar
      ia64: switch handling of 'foreign import wrapper' (FIW) to libffi · e025c94f
      Sergei Trofimovich authored
      I tried to build darcs-2.4.4 with ghc-6.12.3 and got coredumps when darcs is used
      in interactive mode. I tried test from ticket #3516 and found out FIW code is broken.
      Instead of fixing it I just switched to libffi. Result built successfully, passed
      'foreign import wrapper' test from ticket #3516 and builds working darcs.
      e025c94f