Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
384af669
Commit
384af669
authored
Sep 18, 2012
by
Jan Ziak
Committed by
Russ Cox
Sep 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reflect: use []unsafe.Pointer instead of []*int
R=rsc CC=golang-dev
https://golang.org/cl/6527043
parent
ccf2b884
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
value.go
src/pkg/reflect/value.go
+3
-3
No files found.
src/pkg/reflect/value.go
View file @
384af669
...
...
@@ -490,9 +490,9 @@ func (v Value) call(method string, in []Value) []Value {
// TODO(rsc): revisit when reference counting happens.
// The values are holding up the in references for us,
// but something must be done for the out references.
// For now make everything look like a pointer by
pretend
ing
//
to allocate a []*int
.
args
:=
make
([]
*
int
,
size
/
ptrSize
)
// For now make everything look like a pointer by
allocat
ing
//
a []unsafe.Pointer
.
args
:=
make
([]
unsafe
.
Pointer
,
size
/
ptrSize
)
ptr
:=
uintptr
(
unsafe
.
Pointer
(
&
args
[
0
]))
off
:=
uintptr
(
0
)
if
v
.
flag
&
flagMethod
!=
0
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment