Descriptionogle/program/server: clarify ordering of evaluation when ptraceRun
wraps a closure that 'returns' more than just an error.
I don't think this changes the actual behavior with the gc compiler,
but a different compiler might not optimize the "return foo" part
as a no-op, in:
func f() (foo int, err error) {
etc
return foo, <-s.ec
}
and then it's possibly racy whether foo is evaluated before or after
the channel receive.
Patch Set 1 #Patch Set 2 : diff -r 26b078264221 https://code.google.com/p/ogle #Patch Set 3 : diff -r 26b078264221 https://code.google.com/p/ogle #Patch Set 4 : diff -r fe71428bbae6 https://code.google.com/p/ogle #MessagesTotal messages: 3
|