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

Unified Diff: src/pkg/reflect/value.go

Issue 12544043: runtime: chans on steroids
Patch Set: diff -r a2fe41181fe1 https://dvyukov%40google.com@code.google.com/p/go/ Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/reflect/type.go ('k') | src/pkg/runtime/chan.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/reflect/value.go
===================================================================
--- a/src/pkg/reflect/value.go
+++ b/src/pkg/reflect/value.go
@@ -1432,6 +1432,7 @@
}
selected, ok := chanrecv(v.typ, v.pointer(), nb, p)
if !selected {
+ ok = false
val = Value{}
}
return
@@ -2169,6 +2170,8 @@
} else {
recv = Value{t, nil, loadScalar(p, t.size), fl}
}
+ } else {
+ recvOK = false
}
return chosen, recv, recvOK
}
« no previous file with comments | « src/pkg/reflect/type.go ('k') | src/pkg/runtime/chan.c » ('j') | no next file with comments »

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