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

Issue 117580043: code review 117580043: runtime: remove mal/malloc/FlagNoGC/FlagNoInvokeGC (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by dvyukov
Modified:
10 years, 9 months ago
Reviewers:
gobot, khr, dave
CC:
golang-codereviews, khr, rsc
Visibility:
Public.

Description

runtime: remove mal/malloc/FlagNoGC/FlagNoInvokeGC FlagNoGC is unused now. FlagNoInvokeGC is unneeded as we don't invoke GC on g0 and when holding locks anyway. mal/malloc have very few uses and you never remember the exact set of flags they use and the difference between them. Moreover, eventually we need to give exact types to all allocations, something what mal/malloc do not support.

Patch Set 1 #

Patch Set 2 : diff -r 333b975e98c2 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 3 : diff -r 333b975e98c2 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 4 : diff -r 333b975e98c2 https://dvyukov%40google.com@code.google.com/p/go/ #

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -37 lines) Patch
M src/pkg/runtime/cgo/callbacks.c View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/env_posix.c View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/heapdump.c View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M src/pkg/runtime/malloc.h View 1 2 3 4 5 2 chunks +1 line, -4 lines 0 comments Download
M src/pkg/runtime/malloc.c View 1 2 chunks +0 lines, -12 lines 0 comments Download
M src/pkg/runtime/malloc.go View 1 2 chunks +2 lines, -3 lines 0 comments Download
M src/pkg/runtime/mgc0.c View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/panic.c View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/parfor.c View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/proc.c View 1 3 chunks +3 lines, -3 lines 0 comments Download
M src/pkg/runtime/runtime.h View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download
M src/pkg/runtime/runtime.c View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/time.goc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6
dvyukov
Hello golang-codereviews@googlegroups.com (cc: khr@golang.org, rsc@golang.org), I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
10 years, 9 months ago (2014-08-05 15:18:03 UTC) #1
khr
On 2014/08/05 15:18:03, dvyukov wrote: > Hello mailto:golang-codereviews@googlegroups.com (cc: mailto:khr@golang.org, mailto:rsc@golang.org), > > I'd like ...
10 years, 9 months ago (2014-08-06 20:10:26 UTC) #2
dvyukov
*** Submitted as https://code.google.com/p/go/source/detail?r=54f358ebd4d6 *** runtime: remove mal/malloc/FlagNoGC/FlagNoInvokeGC FlagNoGC is unused now. FlagNoInvokeGC is unneeded ...
10 years, 9 months ago (2014-08-07 09:04:10 UTC) #3
gobot
This CL appears to have broken the windows-amd64 builder. See http://build.golang.org/log/95989b5d0387191ec2e6fd1acd7b57898b7f9101
10 years, 9 months ago (2014-08-07 09:17:11 UTC) #4
dave_cheney.net
Yup, confirmed. # Building compilers and Go bootstrap tool. c:\gobuilder\windows-amd64-54f358ebd4d6\go\src\pkg\runtime\callback_windows.c:63 function args not checked: runtime.mal ...
10 years, 9 months ago (2014-08-07 09:18:06 UTC) #5
dvyukov
10 years, 9 months ago (2014-08-07 09:19:30 UTC) #6
i am on it

On Thu, Aug 7, 2014 at 1:18 PM, Dave Cheney <dave@cheney.net> wrote:
> Yup, confirmed.
>
> # Building compilers and Go bootstrap tool.
>
c:\gobuilder\windows-amd64-54f358ebd4d6\go\src\pkg\runtime\callback_windows.c:63
> function args not checked: runtime.mal
>
c:\gobuilder\windows-amd64-54f358ebd4d6\go\src\pkg\runtime\callback_windows.c:63
> incompatible types: "IND STRUCT WinCallbackContext" and "INT" for op
> "AS"
> warning:
c:\gobuilder\windows-amd64-54f358ebd4d6\go\src\pkg\runtime\callback_windows.c:25
> used and not set: c
>
> On Thu, Aug 7, 2014 at 7:17 PM,  <gobot@golang.org> wrote:
>> This CL appears to have broken the windows-amd64 builder.
>> See http://build.golang.org/log/95989b5d0387191ec2e6fd1acd7b57898b7f9101
>>
>>
>> https://codereview.appspot.com/117580043/
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "golang-codereviews" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to golang-codereviews+unsubscribe@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
Sign in to reply to this message.

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