cvs commit: fptools/ghc/rts Main.c
ken@glass.cse.ogi.edu
ken@glass.cse.ogi.edu
Wed, 25 Jul 2001 20:20:52 -0700
ken 2001/07/25 20:20:52 PDT
Modified files:
ghc/rts Main.c
Log:
Added to main():
/*
* Believe it or not, calling tzset() at startup seems to get rid of
* a scheduler-related Heisenbug on alpha-dec-osf3. The symptom of
* the bug is that, when the load on the machine is high or when
* there are many threads, the variable "Capability *cap" in the
* function "schedule" in the file "Schedule.c" magically becomes
* null before the line "t = cap->rCurrentTSO;". Why, and why does
* calling tzset() here seem to fix it? Excellent questions!
*/
tzset();
Revision Changes Path
1.28 +16 -1 fptools/ghc/rts/Main.c