From: Keith Randall Date: Tue, 3 Oct 2017 20:07:07 +0000 (-0700) Subject: runtime: give modulesSlice the correct type X-Git-Tag: go1.10beta1~894 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0a7ef31d7d3e372129a665043c9377dc9e3860ee;p=gostls13.git runtime: give modulesSlice the correct type 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í Reviewed-by: David Crawshaw Run-TryBot: Daniel Martí TryBot-Result: Gobot Gobot --- diff --git a/src/runtime/symtab.go b/src/runtime/symtab.go index 0324fb7a1c..542c29ecd6 100644 --- a/src/runtime/symtab.go +++ b/src/runtime/symtab.go @@ -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. //