Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(934)

Issue 4124041: code review 4124041: fix windows build (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 1 month ago by vcc
Modified:
14 years, 1 month ago
Reviewers:
brainman
CC:
rsc, golang-dev
Visibility:
Public.

Description

fix windows build

Patch Set 1 #

Patch Set 2 : code review 4124041: fix windows build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M src/pkg/runtime/windows/mem.c View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 6
vcc
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 1 month ago (2011-01-29 03:38:28 UTC) #1
rsc
LGTM Sorry for the trouble.
14 years, 1 month ago (2011-01-29 04:43:39 UTC) #2
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=2082c7c28e9e *** fix windows build R=rsc CC=golang-dev http://codereview.appspot.com/4124041 Committer: Russ Cox <rsc@golang.org>
14 years, 1 month ago (2011-01-29 04:44:39 UTC) #3
brainman
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
rsc
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
rsc
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
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b