]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: Fix bug due to elided return.
authorRick Hudson <rlh@golang.org>
Thu, 23 Apr 2015 20:28:15 +0000 (16:28 -0400)
committerRick Hudson <rlh@golang.org>
Fri, 24 Apr 2015 21:52:30 +0000 (21:52 +0000)
A previous change to mbitmap.go dropped a return on a
path the seems not to be excersized. This was a mistake that
this CL fixes.

Change-Id: I715ee4ef08f5bf8d9f53cee84e8fb31a237e2d43
Reviewed-on: https://go-review.googlesource.com/9295
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/mbitmap.go

index f0704bdb5dbdd69536106808105ac6a16216f3e4..a1ebf03e69822fc0874228fb6a727200b0f873e0 100644 (file)
@@ -187,6 +187,7 @@ func heapBitsForObject(p uintptr) (base uintptr, hbits heapBits, s *mspan) {
                        printunlock()
                        throw("objectstart: bad pointer in unexpected span")
                }
+               return
        }
        // If this span holds object of a power of 2 size, just mask off the bits to
        // the interior of the object. Otherwise use the size to get the base.