1. 05 Nov, 2002 3 commits
  2. 04 Nov, 2002 1 commit
  3. 01 Nov, 2002 3 commits
    • simonmar's avatar
      [project @ 2002-11-01 11:17:29 by simonmar] · 9bffc64e
      simonmar authored
      warning police: #include <string.h> to get proto for strlen()
      9bffc64e
    • simonmar's avatar
      [project @ 2002-11-01 11:16:33 by simonmar] · cbe4e8ae
      simonmar authored
      total_alloc should be a 64-bit couunter.
      
      MERGE TO STABLE
      cbe4e8ae
    • simonmar's avatar
      [project @ 2002-11-01 11:05:46 by simonmar] · 6226441f
      simonmar authored
      Fix the heapCensus crash.
      
      It turned out that after a GC, the small_alloc_list might be non-empty
      if a new finalizer thread had been started.  The last block on
      small_alloc_list doesn't have the free pointer set correctly (as a
      small optimisation, we don't normally set the free pointer after each
      allocation, only when the block is full).  The result was that the
      free pointer contains the wrong value, and the heap census traverses
      garbage.  The fix is to set the free pointer correctly before
      traversing small_alloc_list.
      
      The bug doesn't show up when DEBUG is on, because extra DEBUG checks
      cause the free pointer to be initialised to a sensible(-ish) value.
      Hence my difficulty in reproducing the bug.
      
      To reproduce: compile ghc-regress/lib/should_run/memo002 with
      profiling and run it with a sufficiently small sample interval (-i0.02
      did it for me).
      
      Thanks to the kind folks at ARM for helping out with the debugging of
      this one.
      
      MERGE TO STABLE
      6226441f
  4. 31 Oct, 2002 2 commits
  5. 30 Oct, 2002 4 commits
  6. 29 Oct, 2002 9 commits
  7. 28 Oct, 2002 3 commits
  8. 27 Oct, 2002 3 commits
  9. 25 Oct, 2002 8 commits
    • simonpj's avatar
      [project @ 2002-10-25 21:59:51 by simonpj] · af2c228c
      simonpj authored
      Put findLinkable in Finder.lhs, where it can be found in non-ghci stage1 compilers!
      af2c228c
    • simonpj's avatar
      [project @ 2002-10-25 21:58:24 by simonpj] · 264cc860
      simonpj authored
      Import wibbles
      264cc860
    • simonpj's avatar
      [project @ 2002-10-25 16:54:55 by simonpj] · b768e242
      simonpj authored
      Import wibbles
      b768e242
    • simonpj's avatar
      [project @ 2002-10-25 15:57:03 by simonpj] · 7abd5f3d
      simonpj authored
      Reduce exports, and add comments
      7abd5f3d
    • simonpj's avatar
      [project @ 2002-10-25 15:23:03 by simonpj] · 4ef18ea2
      simonpj authored
      ------------------------
      	More dependency fiddling
      	------------------------
      
      	WARNING: Interface file format has changed (again)
      		 You need to 'make clean' in all library code
      
      * Orphan modules are now kept separately
        Home-package dependencies now contain only home-package dependencies!
        See HscTypes.Dependencies
      
      * Linker now uses the dependencies to do dynamic linking
      
      Result: Template Haskell should work even without --make (not yet tested)
      4ef18ea2
    • simonmar's avatar
      [project @ 2002-10-25 12:56:34 by simonmar] · 24889e6a
      simonmar authored
      We shouldn't be using MAP_FIXED on solaris (fixes last night's crash).
      
      Unfortunately on Solaris the heuristics don't work too well.  Solaris
      seems to ignore the addr argument to mmap when MAP_FIXED is not
      specified, and starts handing out memory from the top of the address
      space.  So we allocate 2M each time and munmap() ends to leave an
      aligned 1M chunk.  This will eventually leave the address space
      completely full of 1M holes.  I don't have a good solution to this at
      the moment.
      
      MERGE TO STABLE
      24889e6a
    • simonpj's avatar
      [project @ 2002-10-25 11:33:27 by simonpj] · 0abcbf0f
      simonpj authored
      Wibble; cures failure in stage2 build
      0abcbf0f
    • simonmar's avatar
      [project @ 2002-10-25 09:40:47 by simonmar] · 67944e15
      simonmar authored
      In eval_thunk_selector(), don't follow IND_STATICs because they might
      lead us into to-space.  Fixes a case of "EVACUATED object entered!".
      
      Also, add an assertion to catch this bug earlier.
      
      MERGE TO STABLE
      67944e15
  10. 24 Oct, 2002 3 commits
    • simonpj's avatar
      [project @ 2002-10-24 16:54:19 by simonpj] · 1dafd8c2
      simonpj authored
      Uh oh; got the versioning stuff a bit wrong in the last commit
      1dafd8c2
    • simonpj's avatar
      [project @ 2002-10-24 14:17:46 by simonpj] · e0445ffa
      simonpj authored
      ------------------------------------------
      	1. New try and module and package dependencies
      	2. OrigNameCache always contains final info
      	------------------------------------------
      
      These things nearly complete sorting out the incremental
      linking problem that started us off!
      
      1. This commit separates two kinds of information:
      
        (a) HscTypes.Dependencies:
      	What (i)  home-package modules, and
      	     (ii) other packages
            this module depends on, transitively.
      
            That is, to link the module, it should be enough
            to link the dependent modules and packages (plus
            any C stubs etc).
      
            Along with this info we record whether the dependent module
            is (a) a boot interface or (b) an orphan module.  So in
            fact (i) can contain non-home-package modules, namely the
            orphan ones in other packages (sigh).
      
        (b) HscTypes.Usage:
            What version of imported things were used to
            actually compile the module.  This info is used for
            recompilation control only.
      
      
      
      2. The Finder now returns a correct Module (incl package indicator)
      first time, so we can install the absolutely final Name in the
      OrigNameCache when we first come across an occurrence of that name,
      even if it's only an occurrence in an unfolding in some other interface
      file.  This is much tidier.
      
      As a result Module.lhs is much cleaner
      	No DunnoYet
      	No mkVanillaModule
      ALl very joyful stuff.
      e0445ffa
    • simonmar's avatar
      [project @ 2002-10-24 13:08:35 by simonmar] · 04a63774
      simonmar authored
      In --make mode, consider everything that doesn't contain a '.' to be a
      compilation manager input.  This fixes cases like
      
        ghc --make test37
      
      where test37.hs exists.  I broke this in the previous commit, causing
      a number of tests to break.
      04a63774
  11. 23 Oct, 2002 1 commit