• David Crawshaw's avatar
    runtime: have typelinksinit work forwards · bee42067
    David Crawshaw authored
    For reasons I have forgotten typelinksinit processed modules backwards.
    (I suspect this was an attempt to process types in the executing
    binary first.)
    
    It does not appear to be necessary, and it is not the order we want
    when a module can be loaded at an arbitrary point during a program's
    execution as a plugin. So reverse the order.
    
    While here, make it safe to call typelinksinit multiple times.
    
    Change-Id: Ie10587c55c8e5efa0542981efb6eb3c12dd59e8c
    Reviewed-on: https://go-review.googlesource.com/27822Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
    bee42067
type.go 14.8 KB