runtime: check consistency of all module data objects

Current code just checks the consistency (that the functab is correctly
sorted by PC, etc) of the moduledata object that the runtime belongs to.
Change to check all of them.

Change-Id: I544a44c5de7445fff87d3cdb4840ff04c5e2bf75
Reviewed-on: https://go-review.googlesource.com/9773
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Michael Hudson-Doyle 2015-05-06 14:30:28 +12:00 committed by Ian Lance Taylor
parent d0a05f51f9
commit fa896733b5
2 changed files with 18 additions and 12 deletions

View file

@ -51,7 +51,7 @@ func schedinit() {
framepointer_enabled = haveexperiment("framepointer")
tracebackinit()
symtabverify()
moduledataverify()
stackinit()
mallocinit()
mcommoninit(_g_.m)