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

Issue 5266050: code review 5266050: reflect: store unsafe.Pointer in {Slice,String}Header (Closed)

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

Description

reflect: store unsafe.Pointer in {Slice,String}Header This is in order to mark these types as containing pointers, so the gc won't free the memory behind the Data field from under us.

Patch Set 1 #

Patch Set 2 : diff -r 1acad3f73535 https://go.googlecode.com/hg/ #

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

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -11 lines) Patch
M src/pkg/crypto/tls/root_windows.go View 1 1 chunk +1 line, -1 line 1 comment Download
M src/pkg/gob/decode.go View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/gob/encode.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/reflect/value.go View 1 5 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 9
hector
Hello rsc@golang.org (cc: bradfitz@golang.org, golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 11 months ago (2011-10-16 21:55:40 UTC) #1
brainman
Can't comment about your change. Do not know enough about gc. http://codereview.appspot.com/5266050/diff/5001/src/pkg/crypto/tls/root_windows.go File src/pkg/crypto/tls/root_windows.go (right): ...
13 years, 11 months ago (2011-10-16 23:05:23 UTC) #2
dvyukov
Ouch! Don't we want 6g to consider types containing uintptr's as containing pointers?
13 years, 11 months ago (2011-10-17 07:05:05 UTC) #3
dvyukov
On 2011/10/17 07:05:05, dvyukov wrote: > Ouch! > Don't we want 6g to consider types ...
13 years, 11 months ago (2011-10-17 07:15:43 UTC) #4
dvyukov
On 2011/10/17 07:15:43, dvyukov wrote: > On 2011/10/17 07:05:05, dvyukov wrote: > > Ouch! > ...
13 years, 11 months ago (2011-10-17 07:16:19 UTC) #5
hector
On 17 October 2011 08:05, <dvyukov@google.com> wrote: > Ouch! > Don't we want 6g to ...
13 years, 11 months ago (2011-10-17 07:23:56 UTC) #6
mkrautz
On 2011/10/16 23:05:23, brainman wrote: > Can't comment about your change. Do not know enough ...
13 years, 11 months ago (2011-10-17 12:22:27 UTC) #7
rsc
I'd prefer to use Dmitriy's patch for now. This is a compiler bug introduced only ...
13 years, 11 months ago (2011-10-17 18:57:49 UTC) #8
hector
13 years, 11 months ago (2011-10-17 19:33:42 UTC) #9
*** Abandoned ***
Sign in to reply to this message.

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