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

Issue 13078044: code review 13078044: runtime: record type information for hashtable internal... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 3 months ago by khr
Modified:
12 years, 3 months ago
Reviewers:
dvyukov
CC:
cshapiro1, dvyukov, khr1, golang-dev
Visibility:
Public.

Description

runtime: record type information for hashtable internal structures. Remove all hashtable-specific GC code. Fixes bug 6119.

Patch Set 1 #

Patch Set 2 : diff -r cddeaea05b11 https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 3 : diff -r da8cd843043b https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 4 : diff -r da8cd843043b https://khr%40golang.org@code.google.com/p/go/ #

Total comments: 21

Patch Set 5 : diff -r da8cd843043b https://khr%40golang.org@code.google.com/p/go/ #

Total comments: 3

Patch Set 6 : diff -r da8cd843043b https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 7 : diff -r da8cd843043b https://khr%40golang.org@code.google.com/p/go/ #

Total comments: 4

Patch Set 8 : diff -r da8cd843043b https://khr%40golang.org@code.google.com/p/go/ #

Total comments: 3

Patch Set 9 : diff -r f795546f1c55 https://khr%40golang.org@code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+304 lines, -403 lines) Patch
M src/cmd/gc/go.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M src/cmd/gc/reflect.c View 1 2 3 4 5 6 7 4 chunks +136 lines, -3 lines 0 comments Download
M src/pkg/reflect/type.go View 1 2 3 4 5 6 6 chunks +122 lines, -16 lines 0 comments Download
M src/pkg/runtime/hashmap.h View 1 2 3 4 5 1 chunk +0 lines, -29 lines 0 comments Download
M src/pkg/runtime/hashmap.c View 1 2 3 4 5 6 7 8 19 chunks +33 lines, -247 lines 0 comments Download
M src/pkg/runtime/malloc.h View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M src/pkg/runtime/mgc0.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M src/pkg/runtime/mgc0.c View 1 2 3 4 5 6 7 8 10 chunks +6 lines, -105 lines 0 comments Download
M src/pkg/runtime/type.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 25
khr
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://khr%40golang.org@code.google.com/p/go/
12 years, 3 months ago (2013-08-21 22:12:07 UTC) #1
cshapiro1
minor comments, the compiler part looks good to me https://codereview.appspot.com/13078044/diff/8001/src/cmd/gc/reflect.c File src/cmd/gc/reflect.c (right): https://codereview.appspot.com/13078044/diff/8001/src/cmd/gc/reflect.c#newcode104 src/cmd/gc/reflect.c:104: ...
12 years, 3 months ago (2013-08-21 23:37:44 UTC) #2
dvyukov
https://codereview.appspot.com/13078044/diff/8001/src/cmd/gc/reflect.c File src/cmd/gc/reflect.c (right): https://codereview.appspot.com/13078044/diff/8001/src/cmd/gc/reflect.c#newcode116 src/cmd/gc/reflect.c:116: int32 bucketsize = 8; On 2013/08/21 23:37:44, cshapiro1 wrote: ...
12 years, 3 months ago (2013-08-22 12:12:42 UTC) #3
khr1
On Thu, Aug 22, 2013 at 5:12 AM, <dvyukov@google.com> wrote: > > https://codereview.appspot.**com/13078044/diff/8001/src/**cmd/gc/reflect.c<https://codereview.appspot.com/13078044/diff/8001/src/cmd/gc/reflect.c> > File ...
12 years, 3 months ago (2013-08-23 16:56:54 UTC) #4
cshapiro1
changes look good https://codereview.appspot.com/13078044/diff/15001/src/cmd/gc/reflect.c File src/cmd/gc/reflect.c (right): https://codereview.appspot.com/13078044/diff/15001/src/cmd/gc/reflect.c#newcode123 src/cmd/gc/reflect.c:123: // constants from ../../pkg/runtime/hashmap.c Shouldn't this ...
12 years, 3 months ago (2013-08-23 19:57:37 UTC) #5
dvyukov
https://codereview.appspot.com/13078044/diff/15001/src/pkg/runtime/hashmap.c File src/pkg/runtime/hashmap.c (right): https://codereview.appspot.com/13078044/diff/15001/src/pkg/runtime/hashmap.c#newcode730 src/pkg/runtime/hashmap.c:730: if((h->flags & IndirectKey) != 0) { here you use ...
12 years, 3 months ago (2013-08-24 13:30:52 UTC) #6
dvyukov
> pkg/runtime/malloc.goc#**newcode221<https://codereview.appspot.com/13078044/diff/8001/src/pkg/runtime/malloc.goc#newcode221> > > src/pkg/runtime/malloc.goc:**221: runtime·free_to_gc(void *v, uintptr > > size, uintptr typ) { > ...
12 years, 3 months ago (2013-08-24 13:32:03 UTC) #7
dvyukov
> pkg/runtime/hashmap.c#**newcode459<https://codereview.appspot.com/13078044/diff/8001/src/pkg/runtime/hashmap.c#newcode459> > > src/pkg/runtime/hashmap.c:459: new_buckets = > > runtime·mallocgc((uintptr)h->**bucketsize << (h->B + 1), 0, ...
12 years, 3 months ago (2013-08-24 13:44:56 UTC) #8
khr1
On Sat, Aug 24, 2013 at 6:44 AM, <dvyukov@google.com> wrote: > > pkg/runtime/hashmap.c#****newcode459<https://codereview.** > appspot.com/13078044/diff/**8001/src/pkg/runtime/hashmap.**c#newcode459<https://codereview.appspot.com/13078044/diff/8001/src/pkg/runtime/hashmap.c#newcode459> ...
12 years, 3 months ago (2013-08-24 16:57:15 UTC) #9
dvyukov
On Sat, Aug 24, 2013 at 8:57 PM, Keith Randall <khr@google.com> wrote: pkg/runtime/hashmap.c#**newcode459<https://codereview.appspot.com/13078044/diff/8001/src/pkg/runtime/hashmap.c#newcode459> >>> >>> ...
12 years, 3 months ago (2013-08-24 17:07:39 UTC) #10
khr1
Ok, take another look. I've removed all of the FlagNoZero flags and the hashmap free ...
12 years, 3 months ago (2013-08-27 19:33:10 UTC) #11
cshapiro1
Thanks for doing this, I liked seeing all of the hash table knowledge disappear from ...
12 years, 3 months ago (2013-08-27 20:42:08 UTC) #12
khr1
On Tue, Aug 27, 2013 at 1:42 PM, <cshapiro@google.com> wrote: > Thanks for doing this, ...
12 years, 3 months ago (2013-08-27 20:57:08 UTC) #13
khr1
Dmitry, can you take another look? On Tue, Aug 27, 2013 at 1:57 PM, Keith ...
12 years, 3 months ago (2013-08-29 19:39:35 UTC) #14
dvyukov
I will look tomorrow. I am seriously behind my inbox. On Thu, Aug 29, 2013 ...
12 years, 3 months ago (2013-08-29 19:40:57 UTC) #15
dvyukov
https://codereview.appspot.com/13078044/diff/36001/src/pkg/runtime/hashmap.h File src/pkg/runtime/hashmap.h (right): https://codereview.appspot.com/13078044/diff/36001/src/pkg/runtime/hashmap.h#newcode1 src/pkg/runtime/hashmap.h:1: // Copyright 2009 The Go Authors. All rights reserved. ...
12 years, 3 months ago (2013-08-30 10:28:48 UTC) #16
dvyukov
On 2013/08/27 20:42:08, cshapiro1 wrote: > Thanks for doing this, I liked seeing all of ...
12 years, 3 months ago (2013-08-30 10:29:16 UTC) #17
dvyukov
> Does Hmap heap block type info is correct? It must describe Hmap. If > ...
12 years, 3 months ago (2013-08-30 10:37:21 UTC) #18
dvyukov
https://codereview.appspot.com/13078044/diff/36001/src/pkg/runtime/hashmap.c File src/pkg/runtime/hashmap.c (right): https://codereview.appspot.com/13078044/diff/36001/src/pkg/runtime/hashmap.c#newcode932 src/pkg/runtime/hashmap.c:932: h = runtime·mallocgc(sizeof(*h), (uintptr)typ->hmap, 0); I guess you can ...
12 years, 3 months ago (2013-08-30 10:39:41 UTC) #19
khr1
On Fri, Aug 30, 2013 at 3:28 AM, <dvyukov@google.com> wrote: > > https://codereview.appspot.**com/13078044/diff/36001/src/** > pkg/runtime/hashmap.h<https://codereview.appspot.com/13078044/diff/36001/src/pkg/runtime/hashmap.h> ...
12 years, 3 months ago (2013-08-31 05:37:53 UTC) #20
khr1
On Fri, Aug 30, 2013 at 3:39 AM, <dvyukov@google.com> wrote: > > https://codereview.appspot.**com/13078044/diff/36001/src/** > pkg/runtime/hashmap.c<https://codereview.appspot.com/13078044/diff/36001/src/pkg/runtime/hashmap.c> ...
12 years, 3 months ago (2013-08-31 05:38:47 UTC) #21
dvyukov
On 2013/08/31 05:37:53, khr1 wrote: > On Fri, Aug 30, 2013 at 3:28 AM, <mailto:dvyukov@google.com> ...
12 years, 3 months ago (2013-08-31 07:06:21 UTC) #22
dvyukov
On 2013/08/31 05:38:47, khr1 wrote: > On Fri, Aug 30, 2013 at 3:39 AM, <mailto:dvyukov@google.com> ...
12 years, 3 months ago (2013-08-31 07:08:03 UTC) #23
dvyukov
LGTM
12 years, 3 months ago (2013-08-31 07:08:15 UTC) #24
khr
12 years, 3 months ago (2013-08-31 16:09:54 UTC) #25
*** Submitted as https://code.google.com/p/go/source/detail?r=f605488ef701 ***

runtime: record type information for hashtable internal structures.
Remove all hashtable-specific GC code.

Fixes bug 6119.

R=cshapiro, dvyukov, khr
CC=golang-dev
https://codereview.appspot.com/13078044
Sign in to reply to this message.

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