commit | 5c2c4743980556c041561533ef31762f524737ca | [log] [tgz] |
---|---|---|
author | Cherry Zhang <cherryyz@google.com> | Fri May 10 17:04:11 2019 -0400 |
committer | Ian Lance Taylor <iant@golang.org> | Sat May 11 01:11:48 2019 +0000 |
tree | e1b4049d6da10edca07a16a28c8e4c5da7c182fc | |
parent | 76ab85364745e445498fe53f9ca8e37b49650779 [diff] |
runtime: set up g early runtime.throw needs a g to work properly. Set up g early, to ensure that if something goes wrong in the runtime startup (e.g. runtime.check fails), the program terminates in a reasonable way. Change-Id: I8678ef29383f066915672dfb8632eda305e49ae4 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/176657 Reviewed-by: Ian Lance Taylor <iant@golang.org>