1. 12 Jun, 2009 1 commit
    • Duncan Coutts's avatar
      Add and export rts_unsafeGetMyCapability from rts · 85df606a
      Duncan Coutts authored
      We need this, or something equivalent, to be able to implement
      stgAllocForGMP outside of the rts. That's because we want to use
      allocateLocal which allocates from the given capability without
      having to take any locks. In the gmp primops we're basically in
      an unsafe foreign call, that is a context where we hold a current
      capability. So it's safe for us to use allocateLocal. We just
      need a way to get the current capability. The method to get the
      current capability varies depends on whether we're using the
      threaded rts or not. When stgAllocForGMP is built inside the rts
      that's ok because we can do it conditionally on THREADED_RTS.
      Outside the rts we need a single api we can call without knowing
      if we're talking to a threaded rts or not, hence this addition.
      85df606a
  2. 20 Jun, 2009 1 commit
  3. 16 Jun, 2009 1 commit
  4. 12 Jun, 2009 1 commit
  5. 10 Jun, 2009 1 commit
  6. 29 May, 2009 1 commit
  7. 11 Jun, 2009 1 commit
  8. 10 Jun, 2009 2 commits
  9. 04 Jun, 2009 2 commits
  10. 02 Jun, 2009 2 commits
  11. 30 May, 2009 2 commits
  12. 29 May, 2009 2 commits
  13. 28 May, 2009 3 commits
  14. 28 Mar, 2009 1 commit
  15. 21 May, 2009 1 commit
  16. 19 May, 2009 1 commit
  17. 15 May, 2009 1 commit
    • Duncan Coutts's avatar
      Keep C main separate from rts lib and link it in for standalone progs · fa00cc50
      Duncan Coutts authored
      Previously the object code for the C main function lived in the rts
      lib, however this is a problem when the rts is built as a shared lib.
      With Windows DLLs it always causes problems while on ELF systems it's a
      problem when the user decides to use their own C main function rather
      than a Haskell Main.main. So instead we now put main in it's own tiny
      little static lib libHSrtsmain.a which we install next to the rts libs.
      Whenever ghc links a program (without -no-hs-main) then it also links
      in -lHSrtsmain. For consistency we always do it this way now rather
      than trying to do it differently for static vs shared libraries.
      fa00cc50
  18. 14 May, 2009 1 commit
  19. 20 May, 2009 2 commits
  20. 18 May, 2009 1 commit
  21. 16 May, 2009 2 commits
  22. 15 May, 2009 1 commit
  23. 01 May, 2009 1 commit
  24. 08 May, 2009 2 commits
  25. 05 May, 2009 1 commit
  26. 04 May, 2009 1 commit
  27. 03 May, 2009 1 commit
  28. 29 Apr, 2009 1 commit
  29. 28 Apr, 2009 2 commits