Drop has_set_thread_stack_guarantee flag

This commit is contained in:
Corinna Vinschen
2015-12-15 16:00:20 +01:00
parent 8b8c6c014b
commit 23a556f2c5
6 changed files with 37 additions and 72 deletions

View File

@@ -443,11 +443,9 @@ child_info_fork::alloc_stack ()
api_fatal ("fork: couldn't allocate new stack guard page %p, %E",
stack_ptr);
}
/* On post-XP systems, set thread stack guarantee matching the
guardsize. Note that the guardsize is one page bigger than
the guarantee. */
if (wincap.has_set_thread_stack_guarantee ()
&& real_guardsize > wincap.def_guard_page_size ())
/* Set thread stack guarantee matching the guardsize.
Note that the guardsize is one page bigger than the guarantee. */
if (real_guardsize > wincap.def_guard_page_size ())
{
real_guardsize -= wincap.page_size ();
SetThreadStackGuarantee (&real_guardsize);