Rolling back: Make FastString thread-safe.
authorSimon Marlow <marlowsd@gmail.com>
Thu, 31 Dec 2009 16:46:51 +0000 (16:46 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Thu, 31 Dec 2009 16:46:51 +0000 (16:46 +0000)
commit479b0241032c8b02999e0852f63d57fe3584edf9
treecee0ac0d1767f403a8fb7906be77cad5fe4c0366
parent5178da7f966c810c3d64fee02c1161406f9ac1d2
Rolling back: Make FastString thread-safe.

This patch was the cause of the compile-time performance regression in
#3796.  My guess is that it is due to the use of unsafePerformIO which
traverses the stack up to the first update frame, and perhaps we have
a deep stack when reading the dictionary from a .hi file.  In any
case, since we're not relying on thread safety for FastStrings, I
think the safest thing to do is back this out until we can investigate
further.
compiler/utils/FastString.lhs