#886: Profiling doesn't work with -threaded
-----------------------+----------------------------------------------------
  Reporter:  Lemmih    |          Owner:       
      Type:  task      |         Status:  new  
  Priority:  normal    |      Milestone:  6.6.1
 Component:  Compiler  |        Version:  6.5  
  Severity:  normal    |     Resolution:       
  Keywords:            |             Os:  Linux
Difficulty:  Unknown   |   Architecture:  x86  
-----------------------+----------------------------------------------------
Changes (by simonmar):

  * milestone:  6.6 => 6.6.1
  * summary:  Profiling a threaded application with GHC-6.6rc. => Profiling
              doesn't work with -threaded
  * type:  bug => task

Comment:

 The profiling subsystem isn't thread-safe at all, so can't be used with
 -threaded.  I've made GHC 6.6 emit an error and refuse to compile rather
 than generate a crashing binary.

 Later, we should fix this.  A Big Giant Lock around the profiling
 subsystem is probably sufficient - it will introduce a bottleneck with -N2
 and greater, but it should be ok with single processor runs.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/886>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to