]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix incorrect comment about bitvector layout
authorAustin Clements <austin@google.com>
Wed, 30 Nov 2016 20:48:33 +0000 (15:48 -0500)
committerAustin Clements <austin@google.com>
Thu, 1 Dec 2016 16:42:47 +0000 (16:42 +0000)
Commit 303b69fe packed bitvectors more tightly, but missed a comment
describing their old layout. Update that comment.

Change-Id: I095ccb01f245197054252545f37b40605a550dec
Reviewed-on: https://go-review.googlesource.com/33718
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/runtime/symtab.go

index 8a5b0df31087cc9fa16b134eb3456866c3407e13..f52190661cee83ee80e69eddb2fba1d775101a45 100644 (file)
@@ -666,7 +666,7 @@ func readvarint(p []byte) (newp []byte, val uint32) {
 type stackmap struct {
        n        int32   // number of bitmaps
        nbit     int32   // number of bits in each bitmap
-       bytedata [1]byte // bitmaps, each starting on a 32-bit boundary
+       bytedata [1]byte // bitmaps, each starting on a byte boundary
 }
 
 //go:nowritebarrier