LGTM. Thank you. Russ, I don't think we're executing SysReserve yet, because, I think it ...
14 years, 1 month ago
(2011-01-29 11:55:10 UTC)
#4
LGTM. Thank you.
Russ, I don't think we're executing SysReserve yet, because, I think it would
fail during runtime. It needs to be:
runtime·SysReserve(void *v, uintptr n)
{
return runtime·stdcall(runtime·VirtualAlloc, 4, v, n, MEM_RESERVE,
PAGE_EXECUTE_READWRITE);
}
On Sat, Jan 29, 2011 at 06:55, <alex.brainman@gmail.com> wrote: > LGTM. Thank you. > > ...
14 years, 1 month ago
(2011-01-30 17:20:01 UTC)
#5
On Sat, Jan 29, 2011 at 06:55, <alex.brainman@gmail.com> wrote:
> LGTM. Thank you.
>
> Russ, I don't think we're executing SysReserve yet, because, I think it
> would fail during runtime. It needs to be:
>
> runtime·SysReserve(void *v, uintptr n)
> {
> return runtime·stdcall(runtime·VirtualAlloc, 4, v, n, MEM_RESERVE,
> PAGE_EXECUTE_READWRITE);
> }
Thanks. Will fix. It would only be executed on 64-bit so far,
so you're right that it's not being called.
Russ
14 years, 1 month ago
(2011-01-31 19:33:14 UTC)
#6
> runtime·SysReserve(void *v, uintptr n)
> {
> return runtime·stdcall(runtime·VirtualAlloc, 4, v, n, MEM_RESERVE,
> PAGE_EXECUTE_READWRITE);
Are you sure?
I am reserving the address space, not mapping it,
so I don't want any permissions set on the region.
It's possible that Windows is finicky about this,
but it seemed to me that passing 0 would be okay
since I am not including the MEM_COMMIT flag.
Russ
Issue 4124041: code review 4124041: fix windows build
(Closed)
Created 14 years, 1 month ago by vcc
Modified 14 years, 1 month ago
Reviewers: brainman
Base URL:
Comments: 0