1. 26 Jul, 2007 4 commits
  2. 25 Jul, 2007 10 commits
  3. 24 Jul, 2007 1 commit
    • Simon Marlow's avatar
      hs_exit()/shutdownHaskell(): wait for outstanding foreign calls to complete before returning · 681aad99
      Simon Marlow authored
      This is pertinent to #1177.  When shutting down a DLL, we need to be
      sure that there are no OS threads that can return to the code that we
      are about to unload, and previously the threaded RTS was unsafe in
      this respect.
      
      When exiting a standalone program we don't have to be quite so
      paranoid: all the code will disappear at the same time as any running
      threads.  Happily exiting a program happens via a different path:
      shutdownHaskellAndExit().  If we're about to exit(), then there's no
      need to wait for foreign calls to complete.
      681aad99
  4. 23 Jul, 2007 1 commit
  5. 22 Jul, 2007 1 commit
  6. 24 Jul, 2007 1 commit
  7. 23 Jul, 2007 1 commit
  8. 22 Jul, 2007 3 commits
  9. 21 Jul, 2007 1 commit
  10. 20 Jul, 2007 1 commit
  11. 21 Jul, 2007 2 commits
  12. 19 Jul, 2007 2 commits
  13. 06 Jul, 2007 1 commit
    • Clemens Fruhwirth's avatar
      Fix -split-obj on Mac OS via -fasm · ee40dd6b
      Clemens Fruhwirth authored
      The problem of the splitter was that it re-emitted section directives
      for every dynamic label found. The following was torn apart
      
      .symbol_stubs
      .indirect <symbol>
      L_<symbol>$stub: 
      	jmp *...
      L_<symbol>$stub_binder:
      	..somebinding code..
      
      into
      
      .symbol_stubs
      .indirect_symbol <symbol>
      L_<symbol>$stub: 
      	jmp *...
      .symbol_stubs <--- NEW
      L_<symbol>$stub_binder:
      	..somebinding code..
      
      This is incorrect as the Mac OS assembler enforces that every new code
      section that goes into .symbol_stubs is associated with the linker
      directive .indirect_symbol. This sanity check is obviously violated
      when we reemit .symbol_stub in the splitter. The solution is to ignore
      everything that ends with $stub_binder as new label, and chuck it into
      a single label for $stub.
      
      Also the splitter has to recognize .section __DATA... for the lazy_ptr
      indirection symbol. Adds a reminder to PositionIndependentCode.hs to
      take care of the splitter when the code generation is changed.
      
      This should not affect -fvia-c as the code generated by the C compiler
      is entirely different.
      ee40dd6b
  14. 18 Jul, 2007 1 commit
  15. 16 Jul, 2007 1 commit
  16. 18 Jul, 2007 4 commits
  17. 17 Jul, 2007 1 commit
  18. 18 Jul, 2007 4 commits