]> Cypherpunks repositories - gostls13.git/commitdiff
test: update list of escape reasons
authorAlberto Donizetti <alb.donizetti@gmail.com>
Thu, 29 Mar 2018 12:35:57 +0000 (14:35 +0200)
committerAlberto Donizetti <alb.donizetti@gmail.com>
Thu, 29 Mar 2018 14:17:40 +0000 (14:17 +0000)
The escape_because.go test file (which tests the "because" escape
explainations printed by `-m -m`) cointains a machine-generated list
of all the escape reasons seen in the escape tests.

The list appears to be outdated; moreove a new escape reason was added
in CL 102895. This change re-generates the list.

Change-Id: Idc721c6bbfe9516895b5cf1e6d09b77deda5a3dd
Reviewed-on: https://go-review.googlesource.com/103375
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Alberto Donizetti <alb.donizetti@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

test/escape_because.go

index a8423a59cc2535871fe66f594600538efe7365c5..c7548fc677a5ef4f003c39988de9a17617d827a4 100644 (file)
@@ -141,51 +141,40 @@ appended to slice
 appendee slice
 arg to ...
 arg to recursive call
-array literal element
 array-element-equals
-assign-pair
-assign-pair-dot-type
-assign-pair-func-call
+array literal element
 assigned
 assigned to top level variable
-call part
+assign-pair-dot-type
+assign-pair-func-call
 captured by a closure
-closure-var
-converted
-copied slice
-defer func
-defer func ...
-defer func arg
+captured by called closure
 dot
-dot of pointer
 dot-equals
+dot of pointer
 fixed-array-index-of
-go func
-go func ...
 go func arg
 indirection
 interface-converted
 key of map put
 map literal key
 map literal value
+non-constant size
+panic
 parameter to indirect call
+passed-to-and-returned-from-call
 passed to call[argument content escapes]
 passed to call[argument escapes]
-passed-to-and-returned-from-call
 pointer literal
-range
 range-deref
 receiver in indirect call
 return
 returned from recursive function
-send
-slice
 slice-element-equals
 slice-literal-element
 star-dot-equals
 star-equals
 struct literal element
-switch case
 too large for stack
 value of map put
 */
@@ -198,7 +187,6 @@ assign-pair-mapr
 assign-pair-receive
 call receiver
 map index
-panic
 pointer literal [assign]
 slice literal element
 */