Nim/lib
Reimer Behrends 639b5e0069 Properly register threads with the Boehm GC.
In order to be able to scan thread stacks, the Boehm GC needs to know
about newly created threads. We establish the end of the stack by using
GC_call_with_stack_base (this works properly also with the dual-stack
Itanium architecture) and then GC_register_my_thread() to register a
thrad and GC_unregister_my_thread() to unregister it again.

This patch also includes a modification for the refc and markandsweep
collectors to set the stack bottom for thread stacks correctly even if
an optimizer aggressively inlines and optimizes procedures (this is
already being done for the stack of the main thread).

Finally, we use the {.noconv.} pragma for the Boehm GC, as the Boehm
API uses no specific calling convention.
2015-09-08 19:01:06 +02:00
..
arch Coroutine support for i386/amd64 platforms unix/windows OSes markAndSweep/refCounting GCs. 2015-07-31 17:59:50 +03:00
core fixes bootstrapping 2015-08-21 12:18:04 +02:00
impure Clean up a line ending 2015-09-06 23:02:28 +10:00
js Reverted all changes 2015-06-04 13:18:42 +02:00
packages/docutils Fix for image directive with periods 2015-08-02 14:16:53 -05:00
posix lib: Trim .nim files trailing whitespace 2015-09-04 23:03:56 +02:00
pure Merge pull request #3303 from Amrykid/amrykid-name-change 2015-09-08 11:06:03 +02:00
system Properly register threads with the Boehm GC. 2015-09-08 19:01:06 +02:00
windows Fixes net/asyncdispatch on Windows. Ref #2976. Fixes #2996. 2015-06-25 22:38:17 +01:00
wrappers fixes DLL hell on Windows 2015-09-05 12:03:53 +02:00
cycle.h Removes executable bit for text files. 2013-03-16 23:53:07 +01:00
nimbase.h fixes #3237 2015-08-25 22:44:53 +02:00
nimrtl.nim lib: Trim .nim files trailing whitespace 2015-09-04 23:03:56 +02:00
nimrtl.nim.cfg Rename *.nimrod.cfg to *.nim.cfg 2015-02-03 09:04:24 +01:00
prelude.nim Nimrod renamed to Nim 2014-08-28 09:59:26 +02:00
stdlib.nimble VM supports math and a few os procs 2014-08-30 16:37:27 +02:00
system.nim Properly register threads with the Boehm GC. 2015-09-08 19:01:06 +02:00