Enable -prof -threaded (#886)
authorSimon Marlow <simonmar@microsoft.com>
Thu, 28 Feb 2008 11:16:31 +0000 (11:16 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Thu, 28 Feb 2008 11:16:31 +0000 (11:16 +0000)
commit50c4d03919a9d5c37c14004e964083251f655e93
tree418b71a3c1f657e85e52c85d3b26767b177652b6
parent210ca9c013a9cd193a78c1590e3f2ec4041f4858
Enable -prof -threaded (#886)
It turns out that -prof -threaded works (modulo some small changes),
because all the data structures used in profiling are only accessed by
one thread at a time, at long as we don't use +RTS -N2 or higher.  So
this patch enables the use of -prof -threaded, but an error is given
if you ask for more than one CPU with +RTS -N.
compiler/main/StaticFlags.hs
rts/RtsFlags.c
rts/RtsStartup.c