- 11 Mar, 2010 1 commit
-
-
Simon Marlow authored
This replaces some complicated locking schemes with message-passing in the implementation of throwTo. The benefits are - previously it was impossible to guarantee that a throwTo from a thread running on one CPU to a thread running on another CPU would be noticed, and we had to rely on the GC to pick up these forgotten exceptions. This no longer happens. - the locking regime is simpler (though the code is about the same size) - threads can be unblocked from a blocked_exceptions queue without having to traverse the whole queue now. It's a rare case, but replaces an O(n) operation with an O(1). - generally we move in the direction of sharing less between Capabilities (aka HECs), which will become important with other changes we have planned. Also in this patch I replaced several STM-specific closure types with a generic MUT_PRIM closure type, which allowed a lot of code in the GC and other places to go away, hence the line-count reduction. The message-passing changes resulted in about a net zero line-count difference.
-
- 19 Nov, 2009 1 commit
-
-
Simon Marlow authored
This means we get the prog name in error messages from the flag parser
-
- 02 Aug, 2009 1 commit
-
-
Simon Marlow authored
The first phase of this tidyup is focussed on the header files, and in particular making sure we are exposinng publicly exactly what we need to, and no more. - Rts.h now includes everything that the RTS exposes publicly, rather than a random subset of it. - Most of the public header files have moved into subdirectories, and many of them have been renamed. But clients should not need to include any of the other headers directly, just #include the main public headers: Rts.h, HsFFI.h, RtsAPI.h. - All the headers needed for via-C compilation have moved into the stg subdirectory, which is self-contained. Most of the headers for the rest of the RTS APIs have moved into the rts subdirectory. - I left MachDeps.h where it is, because it is so widely used in Haskell code. - I left a deprecated stub for RtsFlags.h in place. The flag structures are now exposed by Rts.h. - Various internal APIs are no longer exposed by public header files. - Various bits of dead code and declarations have been removed - More gcc warnings are turned on, and the RTS code is more warning-clean. - More source files #include "PosixSource.h", and hence only use standard POSIX (1003.1c-1995) interfaces. There is a lot more tidying up still to do, this is just the first pass. I also intend to standardise the names for external RTS APIs (e.g use the rts_ prefix consistently), and declare the internal APIs as hidden for shared libraries.
-
- 03 Sep, 2008 1 commit
-
-
Simon Marlow authored
-
- 30 Aug, 2006 2 commits
-
-
Simon Marlow authored
-
Simon Marlow authored
-
- 07 Jun, 2006 1 commit
-
-
Simon Marlow authored
-
- 24 May, 2006 1 commit
-
-
Simon Marlow authored
-
- 07 Apr, 2006 1 commit
-
-
Simon Marlow authored
Most of the other users of the fptools build system have migrated to Cabal, and with the move to darcs we can now flatten the source tree without losing history, so here goes. The main change is that the ghc/ subdir is gone, and most of what it contained is now at the top level. The build system now makes no pretense at being multi-project, it is just the GHC build system. No doubt this will break many things, and there will be a period of instability while we fix the dependencies. A straightforward build should work, but I haven't yet fixed binary/source distributions. Changes to the Building Guide will follow, too.
-
- 14 Mar, 2006 1 commit
-
-
Simon Marlow authored
-
- 03 Jan, 2006 1 commit
-
-
simonmar authored
wibble in panic message
-
- 13 Dec, 2005 1 commit
-
-
simonmar authored
Update the bug reporting instructions, I've now installed a redirect from http://www.haskel.org/ghc/reportabug to the bug reporting instructions, just in case we want to move that page in the future.
-
- 27 Oct, 2005 1 commit
-
-
simonmar authored
rtsFatalInternalError(): better to abort() rather than just stg_exit(), at least then we get a core dump.
-
- 20 May, 2005 1 commit
-
-
krasimir authored
Bugfix: in rtsFatalInternalErrorFn vsnprintf function was used instead of snprintf. The code is changed so that the error message will be displayed even if it is longer that BUFSIZE.
-
- 16 Feb, 2005 2 commits
- 28 Jan, 2005 1 commit
-
-
krasimir authored
- The output from uncaught exceptions handler is redirected to RTS's errorBelch. - The output from Debug.Trace is redirected to RTS's debugBelch - Usually errorBelch and debugBelch messages go to stderr except for Windows GUI applications. For GUI applications the Debug.Trace output is redirected to debug console and the exceptions message is displayed in message box.
-
- 06 Sep, 2004 1 commit
-
-
simonmar authored
Further to the RTS messaging tidyup: export the new message API and hooks via RtsMessages.h, so that a client program can easily redirect messages.
-