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

Issue 4133041: code review 4133041: runtime: fix mmap breakage on Windows (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 2 months ago by hector
Modified:
13 years, 2 months ago
Reviewers:
vcc, brainman, rsc
CC:
golang-dev
Visibility:
Public.

Description

runtime: fix mmap breakage on Windows

Patch Set 1 : diff -r 475e73445ae1 https://go.googlecode.com/hg/ #

Patch Set 2 : diff -r 475e73445ae1 https://go.googlecode.com/hg/ #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -6 lines) Patch
M src/pkg/runtime/malloc.goc View 1 chunk +2 lines, -1 line 0 comments Download
M src/pkg/runtime/windows/mem.c View 1 2 chunks +26 lines, -5 lines 2 comments Download

Messages

Total messages: 23
hector
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 2 months ago (2011-02-04 23:19:03 UTC) #1
rsc
Thanks for fixing this. I thought that someone said it failed because the runtime debugging ...
13 years, 2 months ago (2011-02-05 05:55:40 UTC) #2
hector
In the .exe file and in memory the .data section is not the last section ...
13 years, 2 months ago (2011-02-05 11:59:00 UTC) #3
hector
I forgot to add, PTAL as I have changed the code to avoid a potential ...
13 years, 2 months ago (2011-02-05 12:09:39 UTC) #4
brainman
On 2011/02/05 11:59:00, hector wrote: > In the .exe file and in memory the .data ...
13 years, 2 months ago (2011-02-05 23:14:42 UTC) #5
brainman
http://codereview.appspot.com/4133041/diff/12001/src/pkg/runtime/windows/mem.c File src/pkg/runtime/windows/mem.c (left): http://codereview.appspot.com/4133041/diff/12001/src/pkg/runtime/windows/mem.c#oldcode51 src/pkg/runtime/windows/mem.c:51: return runtime·stdcall(runtime·VirtualAlloc, 4, v, n, MEM_RESERVE, PAGE_EXECUTE_READWRITE); It works ...
13 years, 2 months ago (2011-02-07 01:41:40 UTC) #6
hector
http://codereview.appspot.com/4133041/diff/12001/src/pkg/runtime/windows/mem.c File src/pkg/runtime/windows/mem.c (left): http://codereview.appspot.com/4133041/diff/12001/src/pkg/runtime/windows/mem.c#oldcode51 src/pkg/runtime/windows/mem.c:51: return runtime·stdcall(runtime·VirtualAlloc, 4, v, n, MEM_RESERVE, PAGE_EXECUTE_READWRITE); The aim ...
13 years, 2 months ago (2011-02-07 08:46:45 UTC) #7
rsc
Can we change the definition of "end" in 8l to be the actual end of ...
13 years, 2 months ago (2011-02-08 20:41:52 UTC) #8
brainman
On 2011/02/08 20:41:52, rsc wrote: > Can we change the definition of "end" in 8l ...
13 years, 2 months ago (2011-02-08 22:14:39 UTC) #9
rsc
> The value we're after would be in nextsectoff at > > set(SizeOfImage, nextsectoff); > ...
13 years, 2 months ago (2011-02-08 23:48:40 UTC) #10
brainman
On 2011/02/08 23:48:40, rsc wrote: > > The value we're after would be in nextsectoff ...
13 years, 2 months ago (2011-02-09 01:10:33 UTC) #11
rsc
I think we should not be mapping .symtab or dwarf into memory. They're in the ...
13 years, 2 months ago (2011-02-09 03:23:07 UTC) #12
brainman
On 2011/02/09 03:23:07, rsc wrote: > I think we should not be mapping .symtab or ...
13 years, 2 months ago (2011-02-09 03:49:14 UTC) #13
rsc
I'll try to take a closer look tomorrow when I am working on the Linux ...
13 years, 2 months ago (2011-02-09 04:40:12 UTC) #14
hector
From a cursory examination of pe.c it might just work to add the .data section ...
13 years, 2 months ago (2011-02-09 08:00:14 UTC) #15
brainman
On 2011/02/09 08:00:14, hector wrote: > From a cursory examination of pe.c it might just ...
13 years, 2 months ago (2011-02-09 08:26:09 UTC) #16
vcc
2011/2/9 Russ Cox <rsc@golang.org> > > The value we're after would be in nextsectoff at ...
13 years, 2 months ago (2011-02-09 09:00:00 UTC) #17
hector
Not sure if this hurts any, but I've noticed that a few pages are mapped ...
13 years, 2 months ago (2011-02-09 09:28:30 UTC) #18
rsc
> I think we can update "end" value in asmbpe, PEBASE+nextsectoff would be the > ...
13 years, 2 months ago (2011-02-09 12:39:39 UTC) #19
vcc
2011/2/9 Russ Cox <rsc@golang.org> > > I think we can update "end" value in asmbpe, ...
13 years, 2 months ago (2011-02-09 13:50:21 UTC) #20
rsc
> Could overwrite the "end" value, like dynimport write FirstThunks (allocated > in .data section): ...
13 years, 2 months ago (2011-02-09 14:15:02 UTC) #21
rsc
I think this CL is not necessary anymore.
13 years, 2 months ago (2011-02-11 17:40:42 UTC) #22
hector
13 years, 2 months ago (2011-02-12 13:58:08 UTC) #23
*** Abandoned ***
Sign in to reply to this message.

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