aboutsummaryrefslogtreecommitdiff
path: root/src/liblink
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2015-01-23 14:18:31 -0500
committerRuss Cox <rsc@golang.org>2015-02-13 18:37:31 +0000
commit2ecefd41fa853e40346e0f89c632efb8682c431b (patch)
tree53e1d830e9cfaf42211eee1efa0291459c628541 /src/liblink
parent87de9ce212988c8bdf0630750e772d8805091bcc (diff)
downloadgo-2ecefd41fa853e40346e0f89c632efb8682c431b.tar.xz
[dev.cc] liblink: disable GOOBJ=2 default
The point of GOOBJ=2 was to have an active test of the cmd/internal/obj code. Now we have end-to-end tests of the assembler, and soon the compiler, so we don't need this halfway test on by default anymore. (It's still possible to enable during debugging with the environment variable.) The problem it causes on the builders is that this particular testing mode ends up with both the C process and the Go objwriter subprocess having the same very large Prog list in memory simultaneously, which causes basically a 2x memory blowup. In large programs (such as the one generated by test/rotate.go) this is significant. Disabling GOOBJ=2 should help with the current dev.cc builder failures. Change-Id: I1b11e4f29ea575659f02d2234242a904f7c867e4 Reviewed-on: https://go-review.googlesource.com/4832 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/liblink')
-rw-r--r--src/liblink/objfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liblink/objfile.c b/src/liblink/objfile.c
index 65fdcde19b..99f5e97607 100644
--- a/src/liblink/objfile.c
+++ b/src/liblink/objfile.c
@@ -143,7 +143,7 @@ writeobj(Link *ctxt, Biobuf *b)
// we will hard code the GOOBJ=1 behavior.
env = getenv("GOOBJ");
if(env == nil)
- env = "2";
+ env = "0";
if(atoi(env) == 0) {
writeobjdirect(ctxt, b);
return;