[gc] Remove mono_gc_set_stack_end (#3845)
authorLudovic Henry <ludovic@xamarin.com>
Fri, 28 Oct 2016 12:49:23 +0000 (08:49 -0400)
committerGitHub <noreply@github.com>
Fri, 28 Oct 2016 12:49:23 +0000 (08:49 -0400)
commitd6e1e41a810fd92ce00a00c5e931ac754f5399c8
tree7bb23b3908f874e96e7d9a8ce643578b8fa0c6f8
parentf4d2a54f88302cc2f20d70127050b0f7ff484095
[gc] Remove mono_gc_set_stack_end (#3845)

* [sgen] Add stress test

This hope to suspend a thread while it is in the process of attaching or detaching.

* [sgen] Fix unified suspend

This would cause a crash with unified suspend: if a thread would be suspended at mono-threads.c:1168, the stack_start would be greater than the stack_end, triggering the g_error at sgen-stw.c:351. The stack_end would initially be initialized in `sgen_client_thread_register`, but it would be overriden in start_wrapper at threads.c:893.
mono/metadata/threads.c
mono/tests/Makefile.am
mono/tests/sgen-new-threads-collect.cs [new file with mode: 0644]