summaryrefslogtreecommitdiff
path: root/rts/parallel
Commit message (Collapse)AuthorAgeFilesLines
* FIX #38000 Store StgArrWords payload size in bytesAntoine Latter2010-01-013-10/+10
|
* Use StgWord64 instead of ullongIan Lynagh2010-04-213-32/+32
| | | | | | This patch also fixes ullong_format_string (renamed to showStgWord64) so that it works with values outside the 32bit range (trac #3979), and simplifies the without-commas case.
* Refactoring onlySimon Marlow2009-12-022-4/+4
|
* RTS tidyup sweep, first phaseSimon Marlow2009-08-023-414/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Use work-stealing for load-balancing in the GCSimon Marlow2009-03-132-8/+0
| | | | | | | | | | | | | | | | | New flag: "+RTS -qb" disables load-balancing in the parallel GC (though this is subject to change, I think we will probably want to do something more automatic before releasing this). To get the "PARGC3" configuration described in the "Runtime support for Multicore Haskell" paper, use "+RTS -qg0 -qb -RTS". The main advantage of this is that it allows us to easily disable load-balancing altogether, which turns out to be important in parallel programs. Maintaining locality is sometimes more important that spreading the work out in parallel GC. There is a side benefit in that the parallel GC should have improved locality even when load-balancing, because each processor prefers to take work from its own queue before stealing from others.
* general tidy upSimon Marlow2009-02-111-15/+10
|
* one more bugfix: a load/load memory barrier is required in stealWSDeque_()Simon Marlow2009-02-111-1/+4
|
* crucial bugfix: add a store/load memory barrier to popWSDeque()Simon Marlow2009-02-061-1/+8
|
* bugfix: an unsigned comparison should be signedSimon Marlow2009-02-061-1/+1
|
* tiny cleanupSimon Marlow2009-02-061-1/+1
|
* add debugging code and commentsSimon Marlow2009-02-061-2/+15
|
* add an assertionSimon Marlow2009-02-061-0/+1
|
* Refactor the spark queue implementation into a generic work-stealing dequeSimon Marlow2009-02-052-0/+400
| | | | So we can use this abstraction elsewhere in the RTS
* Split GC.c, and move storage manager into sm/ directorySimon Marlow2006-10-241-2/+2
| | | | | | | | | | | | | | | | | In preparation for parallel GC, split up the monolithic GC.c file into smaller parts. Also in this patch (and difficult to separate, unfortunatley): - Don't include Stable.h in Rts.h, instead just include it where necessary. - consistently use STATIC_INLINE in source files, and INLINE_HEADER in header files. STATIC_INLINE is now turned off when DEBUG is on, to make debugging easier. - The GC no longer takes the get_roots function as an argument. We weren't making use of this generalisation.
* Reorganisation of the source treeSimon Marlow2006-04-0727-0/+18034
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.