patchDotGNU Portable.NET - Patches: patch #7620, Added support for the windows...


You are not allowed to post comments on this tracker with your current authentication level.

patch #7620: Added support for the windows stack guard page in libjit.

Submitted by:  Patrick van Beem <pvbeem>
Submitted on:  Wed 21 Sep 2011 05:12:51 AM UTC  
Category:  None Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open

Wed 21 Sep 2011 05:12:51 AM UTC, original submission:

In windows, the allocation of physical memory for the stack is controlled by a guard page on the last not allocated page of the stack. Functions that use more then 4K of stack, should access every page of the stack they need in the correct order, to ensure the allocation of physical memory for the complete stack they use. Failing to do so, results in an access violation exception. Libjit did not do this. The changes below implement this. See also:

The fixes are below. I couldn't make a diff, because my previous patches are already applied in this code, but not in the main trunk...

Fix for 32 bit (jit-rules-x86.c), chages are on and after the #ifdef WIN32 block:

Fix for 64 bit (jit-rules-x86-64.c), changes are in the block with the inline assembler within the #ifdef WIN64:

Patrick van Beem <pvbeem>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by pvbeem (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.4