1. 22 Apr, 2005 21 commits
    • simonmar's avatar
      [project @ 2005-04-22 21:54:37 by simonmar] · 395f4b28
      simonmar authored
      enable splitting on x86_64
      395f4b28
    • simonmar's avatar
      [project @ 2005-04-22 21:54:08 by simonmar] · 3a324adb
      simonmar authored
      splitting support on x86_64
      3a324adb
    • simonmar's avatar
      [project @ 2005-04-22 21:16:27 by simonmar] · f33bd72e
      simonmar authored
      fix uses of stderr
      f33bd72e
    • sof's avatar
      [project @ 2005-04-22 17:50:13 by sof] · fbf16357
      sof authored
      Switch to a manual-reset event for the completed-console-event object;
      with auto-reset, we ran the risk of leaving it in a signalled state.
      
      Merge to STABLE.
      fbf16357
    • sof's avatar
      [project @ 2005-04-22 17:15:51 by sof] · c3b7d57d
      sof authored
      Switch away from using _spawnv() to CreateProcess(); the former has the
      annoying 'feature' that it quits upon Ctrl-C, leaving its child in the
      background. Use CreateProcess() instead and avoid the Ctrl-C issue by
      having the wrapper let go of its console before waiting for the sub-process
      running GHCi to exit.
      
      This still doesn't fix the issue of Ctrl-C handling when the 'ghci' wrapper
      is invoked from a cygwin-based bash. cmd.exe users will hopefully see
      an improvement in behaviour though.
      
      Merge to STABLE.
      c3b7d57d
    • sof's avatar
      [project @ 2005-04-22 17:00:48 by sof] · ecb1a539
      sof authored
      [mingw only]
      Better handling of I/O request abortions upon throwing an exception
      to a Haskell thread. As was, a thread blocked on an I/O request was
      simply unblocked, but its corresponding worker thread wasn't notified
      that the request had been abandoned.
      
      This manifested itself in GHCi upon Ctrl-C being hit at the prompt -- the
      worker thread blocked waiting for input on stdin prior to Ctrl-C would
      stick around even though its corresponding Haskell thread had been
      thrown an Interrupted exception. The upshot was that the worker would
      consume the next character typed in after Ctrl-C, but then just dropping
      it. Dealing with this turned out to be even more interesting due to
      Win32 aborting any console reads when Ctrl-C/Break events are delivered.
      
      The story could be improved upon (at the cost of portability) by making
      the Scheduler able to abort worker thread system calls; as is, requests
      are cooperatively abandoned. Maybe later.
      
      Also included are other minor tidyups to Ctrl-C handling under mingw.
      
      Merge to STABLE.
      ecb1a539
    • sof's avatar
      [project @ 2005-04-22 16:53:48 by sof] · 68c13856
      sof authored
      oops;supposed to have been included with revert-back-to-__stginit-for-mingw commit
      68c13856
    • sof's avatar
      [project @ 2005-04-22 16:49:38 by sof] · 23e16cda
      sof authored
      resetStaticObjectForRetainerProfiling(): warning wibble
      23e16cda
    • sof's avatar
      [project @ 2005-04-22 16:01:53 by sof] · a584b4ff
      sof authored
      Until the GHCi linker is made capable of handling .ctors sections in
      PEi object files, stick with __stginits. Being a bit sloppy by
      using 'mingw32_HOST_OS' to test for this.
      a584b4ff
    • simonmar's avatar
      [project @ 2005-04-22 14:19:07 by simonmar] · f4b45682
      simonmar authored
      Fix creation of raise_info closures: they're THUNKs
      f4b45682
    • simonmar's avatar
      [project @ 2005-04-22 14:18:29 by simonmar] · 6444de58
      simonmar authored
      evacuate(): fix THUNK case
      6444de58
    • simonmar's avatar
      [project @ 2005-04-22 13:12:41 by simonmar] · 5d0394e2
      simonmar authored
      checkSanity: fix bug in nursery checking
      5d0394e2
    • simonmar's avatar
      [project @ 2005-04-22 13:05:51 by simonmar] · 3ac7c9a6
      simonmar authored
      SAVE_EVERYTHING: for some reason we used R10.w rather than R10 in this
      macro, which just broke with the change to the C backend.
      3ac7c9a6
    • simonmar's avatar
      [project @ 2005-04-22 12:28:00 by simonmar] · ec0984a9
      simonmar authored
      - Now that labels are always prefixed with '&' in .hc code, we have to
        fix some sloppiness in the RTS .cmm code.  Fortunately it's not too
        painful.
      
      - SMP: acquire/release the storage manager lock around
        atomicModifyMutVar#.  This is a hack: atomicModifyMutVar# isn't
        atomic under SMP otherwise, but the SM lock is a large sledgehammer.
        I think I'll apply the sledgehammer to the MVar primitives too, for
        the time being.
      ec0984a9
    • simonmar's avatar
      [project @ 2005-04-22 11:20:22 by simonmar] · 3f9677ec
      simonmar authored
      rtsSupportsBoundThreads, isThreadBound: these should return rtsTrue
      for SMP too.
      3f9677ec
    • simonmar's avatar
      [project @ 2005-04-22 10:21:10 by simonmar] · b0cfcc18
      simonmar authored
      pprLit: when printing a CLabel, prefix it with '&'.  This ensures we
      get the address rather than the value, in the case when the C label
      refers to a variable (as might be the case if it is from a foreign
      import, for example).
      b0cfcc18
    • simonmar's avatar
      [project @ 2005-04-22 10:01:20 by simonmar] · 9b7a97d8
      simonmar authored
      Remove bogus cut-n-pasted comment
      9b7a97d8
    • simonmar's avatar
      [project @ 2005-04-22 09:32:39 by simonmar] · 0f3205e6
      simonmar authored
      SMP: the rest of the changes to support safe thunk entry & updates.  I
      thought the compiler changes were independent, but I ended up breaking
      the HEAD, so I'll have to commit the rest.  non-SMP compilation should
      not be affected.
      0f3205e6
    • simonmar's avatar
      [project @ 2005-04-22 08:58:36 by simonmar] · b43be282
      simonmar authored
      Add a comment about possible improvement to the THUNK_SELECTOR
      algorithm, from discussion with Ian Lynagh
      b43be282
    • simonmar's avatar
      [project @ 2005-04-22 08:41:00 by simonmar] · 4e0ab579
      simonmar authored
      Various fixes to ghcprof, from Christian Maeder <maeder@tzi.de>.  Thanks!
      4e0ab579
    • simonpj's avatar
      [project @ 2005-04-22 02:10:10 by simonpj] · def40b89
      simonpj authored
      Fix hi-boot interface-finding code
      def40b89
  2. 21 Apr, 2005 3 commits
  3. 20 Apr, 2005 4 commits
  4. 19 Apr, 2005 6 commits
  5. 17 Apr, 2005 2 commits
  6. 16 Apr, 2005 4 commits
    • simonpj's avatar
      [project @ 2005-04-16 22:47:23 by simonpj] · 9d2575d7
      simonpj authored
      Significant clean-up of the handling of hi-boot files. 
      Previously, when compling A.hs, we loaded A.hi-boot, and
      it went into the External Package Table.  It was strange
      but it worked.  This tidy up stops it going anywhere;
      it's just read in, and typechecked into a ModDetails.
      
      All this was on the way to improving the handling of
      instances in hs-boot files, something Chris Ryder wanted.
      I think they work quite sensibly now.  
      
      If I've got all this right (have not had a chance to
      fully test it) we can merge it into STABLE.
      9d2575d7
    • simonpj's avatar
      [project @ 2005-04-16 22:46:01 by simonpj] · f857ebdc
      simonpj authored
      Improve kind error msg; may make some tests change their output
      f857ebdc
    • simonpj's avatar
      [project @ 2005-04-16 22:45:17 by simonpj] · bb551326
      simonpj authored
      Improve location info for kind errors; may make some tests change their output
      bb551326
    • panne's avatar
      [project @ 2005-04-16 19:39:25 by panne] · b5503e45
      panne authored
      And yesterday's "I messed up DocBook XML, too!" award goes to...
      
         *drum roll*
      
         ... Simon Peyton-Jones!
      
      Congratulations! :-)
      b5503e45