]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: give modulesSlice the correct type
authorKeith Randall <khr@golang.org>
Tue, 3 Oct 2017 20:07:07 +0000 (13:07 -0700)
committerKeith Randall <khr@golang.org>
Tue, 3 Oct 2017 23:21:50 +0000 (23:21 +0000)
No need to type this global as an unsafe.Pointer, we know
what type the referent is.

Change-Id: I7b1374065b53ccf1373754a21d54adbedf1fd587
Reviewed-on: https://go-review.googlesource.com/67990
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/runtime/symtab.go

index 0324fb7a1ccb104ef1c8b05c824d73807b848126..542c29ecd677b03d0654fbe70bb8564cc4c58b17 100644 (file)
@@ -413,7 +413,7 @@ var pinnedTypemaps []map[typeOff]*_type
 
 var firstmoduledata moduledata  // linker symbol
 var lastmoduledatap *moduledata // linker symbol
-var modulesSlice unsafe.Pointer // see activeModules
+var modulesSlice *[]*moduledata // see activeModules
 
 // activeModules returns a slice of active modules.
 //