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

Issue 12720043: code review 12720043: runtime: implement SysUnused on windows (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 4 months ago by dvyukov
Modified:
12 years, 4 months ago
Reviewers:
brainman, chai2010, ality
CC:
golang-dev
Visibility:
Public.

Description

runtime: implement SysUnused on windows Fixes issue 5584.

Patch Set 1 #

Patch Set 2 : diff -r 4f468b088d66 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 4f468b088d66 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 4f468b088d66 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r d7db8c804ffa https://dvyukov%40google.com@code.google.com/p/go/ #

Total comments: 7

Patch Set 6 : diff -r 9eb1dd061b1f https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 7 : diff -r 4768414e92d8 https://dvyukov%40google.com@code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -9 lines) Patch
M src/pkg/runtime/malloc.h View 1 2 chunks +4 lines, -2 lines 0 comments Download
M src/pkg/runtime/mem_darwin.c View 1 1 chunk +7 lines, -0 lines 0 comments Download
M src/pkg/runtime/mem_freebsd.c View 1 1 chunk +7 lines, -0 lines 0 comments Download
M src/pkg/runtime/mem_linux.c View 1 1 chunk +7 lines, -0 lines 0 comments Download
M src/pkg/runtime/mem_netbsd.c View 1 1 chunk +7 lines, -0 lines 0 comments Download
M src/pkg/runtime/mem_openbsd.c View 1 1 chunk +7 lines, -0 lines 0 comments Download
M src/pkg/runtime/mem_plan9.c View 1 1 chunk +6 lines, -0 lines 0 comments Download
M src/pkg/runtime/mem_windows.c View 1 2 3 4 5 2 chunks +16 lines, -2 lines 0 comments Download
M src/pkg/runtime/mheap.c View 1 4 chunks +10 lines, -5 lines 0 comments Download

Messages

Total messages: 14
dvyukov
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
12 years, 4 months ago (2013-08-12 08:29:20 UTC) #1
chai2010
https://codereview.appspot.com/12720043/diff/10001/src/pkg/runtime/mem_plan9.c File src/pkg/runtime/mem_plan9.c (right): https://codereview.appspot.com/12720043/diff/10001/src/pkg/runtime/mem_plan9.c#newcode61 src/pkg/runtime/mem_plan9.c:61: USED(v, nbytes); typo ? USED(v); USED(n);
12 years, 4 months ago (2013-08-12 10:07:34 UTC) #2
dvyukov
https://codereview.appspot.com/12720043/diff/10001/src/pkg/runtime/mem_plan9.c File src/pkg/runtime/mem_plan9.c (right): https://codereview.appspot.com/12720043/diff/10001/src/pkg/runtime/mem_plan9.c#newcode61 src/pkg/runtime/mem_plan9.c:61: USED(v, nbytes); On 2013/08/12 10:07:34, chai2010 wrote: > typo ...
12 years, 4 months ago (2013-08-12 10:36:03 UTC) #3
brainman
windows part LGTM. Even better then I expected - you're actually decommitting memory. I don't ...
12 years, 4 months ago (2013-08-13 01:02:09 UTC) #4
dvyukov
https://codereview.appspot.com/12720043/diff/10001/src/pkg/runtime/mem_windows.c File src/pkg/runtime/mem_windows.c (right): https://codereview.appspot.com/12720043/diff/10001/src/pkg/runtime/mem_windows.c#newcode35 src/pkg/runtime/mem_windows.c:35: runtime·stdcall(runtime·VirtualFree, 3, v, n, (uintptr)MEM_DECOMMIT); On 2013/08/13 01:02:09, brainman ...
12 years, 4 months ago (2013-08-13 10:07:58 UTC) #5
dvyukov
On 2013/08/13 01:02:09, brainman wrote: > windows part LGTM. > > Even better then I ...
12 years, 4 months ago (2013-08-13 10:11:53 UTC) #6
brainman
On 2013/08/13 10:11:53, dvyukov wrote: > > I've tested with MEM_RESET, and it does not ...
12 years, 4 months ago (2013-08-13 11:52:28 UTC) #7
dvyukov
*** Submitted as https://code.google.com/p/go/source/detail?r=727c220568e9 *** runtime: implement SysUnused on windows Fixes issue 5584. R=golang-dev, chaishushan, ...
12 years, 4 months ago (2013-08-14 17:54:15 UTC) #8
chai2010
https://codereview.appspot.com/12720043/diff/10001/src/pkg/runtime/mem_plan9.c File src/pkg/runtime/mem_plan9.c (right): https://codereview.appspot.com/12720043/diff/10001/src/pkg/runtime/mem_plan9.c#newcode61 src/pkg/runtime/mem_plan9.c:61: USED(v, nbytes); On 2013/08/12 10:36:03, dvyukov wrote: > On ...
12 years, 4 months ago (2013-08-15 00:02:12 UTC) #9
brainman
On 2013/08/15 00:02:12, chai2010 wrote: > Sorry for this question again. > I can't find ...
12 years, 4 months ago (2013-08-15 00:11:09 UTC) #10
chai2010
On 2013/08/15 00:11:09, brainman wrote: > On 2013/08/15 00:02:12, chai2010 wrote: > > Sorry for ...
12 years, 4 months ago (2013-08-15 09:40:58 UTC) #11
dvyukov
On 2013/08/15 00:02:12, chai2010 wrote: > https://codereview.appspot.com/12720043/diff/10001/src/pkg/runtime/mem_plan9.c > File src/pkg/runtime/mem_plan9.c (right): > > https://codereview.appspot.com/12720043/diff/10001/src/pkg/runtime/mem_plan9.c#newcode61 > ...
12 years, 4 months ago (2013-08-15 09:49:00 UTC) #12
brainman
On 2013/08/15 09:40:58, chai2010 wrote: > > sorry for my poor english and poor knowledge. ...
12 years, 4 months ago (2013-08-16 00:08:08 UTC) #13
ality
12 years, 4 months ago (2013-08-16 01:10:31 UTC) #14
>> 2. Does `USED` macro can support multi-arguments?

The runtime is not compiled using the host compiler
so the macro defined in src/lib9 is not applicable.

In the Plan 9 C compilers, USED and SET are reserved
keywords that act like functions and expect zero or
more arguments (which must be either variable names
or & expressions).

  Anthony
Sign in to reply to this message.

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