[Mono-dev] [PATCH] Implement mono_thread_get_stack_bounds on windows

Rodrigo Kumpera kumpera at gmail.com
Thu May 21 09:40:06 EDT 2009


Here is a test program that can be used to verify how it works.

Cheers,
Rodrigo

On Wed, May 20, 2009 at 7:32 PM, Rodrigo Kumpera <kumpera at gmail.com> wrote:

> And, of course, I forgot to attach the patch.
>
>
> On Wed, May 20, 2009 at 7:31 PM, Rodrigo Kumpera <kumpera at gmail.com>wrote:
>
>> Forgot to mention that there is another well know hack to discover stack
>> bounds and why I rather like this one.
>>
>> The hack is to use VirtualQuery on %esp and expand the range to upward
>> regions.
>>
>> I think the VirtualQuery hack is worse as it works by using a somewhat ok
>> heuristics and OTOH the NtCurrentTe
>> one provides precise information and I doubt it will disapear overnight.
>>
>>
>>
>>
>> On Wed, May 20, 2009 at 7:25 PM, Rodrigo Kumpera <kumpera at gmail.com>wrote:
>>
>>> Hey,
>>>
>>> Attached is a patch that implements this function on windows. Tested only
>>> on XP/win32.
>>>
>>> Cheers,
>>> Rodrigo
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090521/3c4ebd03/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: teb_example.c
Type: text/x-csrc
Size: 656 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090521/3c4ebd03/attachment-0001.bin 


More information about the Mono-devel-list mailing list