- 11 Mar, 2015 5 commits
-
-
Dmitry Vyukov authored
Augment ProcStart events with OS thread id. This helps in scheduler locality analysis. Change-Id: I93fea75d3072cf68de66110d0b59d07101badcb5 Reviewed-on: https://go-review.googlesource.com/7302Reviewed-by: Keith Randall <khr@golang.org>
-
Matthew Dempsky authored
Fixes #10129. Change-Id: I9f56c483726f14b6c1909740549de236d5bf9cfb Reviewed-on: https://go-review.googlesource.com/7340Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Dave Cheney authored
More cleanups to gc.Node - make Node.Local a boolean - make Type.Local a boolean - reduce the size of Node.Esc to a uint8 Reducing the size of Node.Esc shaves ~45mb off the RSS compiling cmd/internal/gc on amd64 before: Maximum resident set size (kbytes): 659496 after: Maximum resident set size (kbytes): 612196 - declare gc.Funcdepth as int32 - declare Node.Funcdepth as int32 In both cases, these were previously machine specific int types. This doesn't result in any memory saving at the moment due to struct padding. Change-Id: Iabef8da15e962fe8b79d7fd3d402fb26ce7ec31c Reviewed-on: https://go-review.googlesource.com/7261Reviewed-by: Keith Randall <khr@golang.org> Run-TryBot: Dave Cheney <dave@cheney.net> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Dave Cheney authored
This change adds the minimum necessary to implement applyRelocations. For adg, this code uses the switch statement. Change-Id: I0989daab8d0e36c2a4f6a315ced258b832744616 Reviewed-on: https://go-review.googlesource.com/7266Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Nigel Tao authored
The testdata was generated by: convert video-001.png tmp1.tga cjpeg -quality 100 -sample 2x2,1x2,1x2 tmp1.tga > video-001.221212.jpeg djpeg -nosmooth -targa video-001.221212.jpeg > tmp2.tga convert tmp2.tga video-001.221212.png rm tmp1.tga tmp2.tga Change-Id: Ica241dfc19b3eb47ade150bf0432373c6006c38a Reviewed-on: https://go-review.googlesource.com/7264Reviewed-by: Rob Pike <r@golang.org>
-
- 10 Mar, 2015 12 commits
-
-
Dave Cheney authored
Updates #9974 This change is in preparation for merging the arm64 platform. Arm64 does not support SYS_DUP2 at all, so define a new constant to be the minimum dup(2) version supported. This constant defaults to SYS_DUP2 on all existing platforms. Change-Id: If405878105082c7c880f8541c1491970124c9ce4 Reviewed-on: https://go-review.googlesource.com/7123Reviewed-by: Minux Ma <minux@golang.org> Run-TryBot: Minux Ma <minux@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Dave Cheney <dave@cheney.net>
-
Shenghou Ma authored
Kick start the upstreaming of the arm64 port. The only manual change is cmd/go/pkg.go. Change-Id: I0607ad045486f0998c4e21654b59276ca5348069 Reviewed-on: https://go-review.googlesource.com/7075Reviewed-by: Aram Hăvărneanu <aram@mgk.ro> Run-TryBot: Aram Hăvărneanu <aram@mgk.ro> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Robert Griesemer authored
Fixes #10125. Change-Id: I99032912650cef8e5bf124bda0a60d5899760103 Reviewed-on: https://go-review.googlesource.com/7320Reviewed-by: Robert Griesemer <gri@golang.org>
-
Dmitry Vyukov authored
Some of the trace stacks are OS-dependent due to OS-specific code in net package. Check these stacks only on subset of OSes. Change-Id: If95e4485839f4120fd6395725374c3a2f8706dfc Reviewed-on: https://go-review.googlesource.com/7300 Run-TryBot: Dmitry Vyukov <dvyukov@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
-
Rick Hudson authored
Even though the world is stopped the GC may do pointer writes that need to be protected by write barriers. This means that the write barrier must be on continuously from the time the mark phase starts and the mark termination phase ends. Checks were added to ensure that no allocation happens during a GC. Hoist the logic that clears pools the start of the GC so that the memory can be reclaimed during this GC cycle. Change-Id: I9d1551ac5db9bac7bac0cb5370d5b2b19a9e6a52 Reviewed-on: https://go-review.googlesource.com/6990Reviewed-by: Austin Clements <austin@google.com>
-
Dmitry Vyukov authored
Stip uninteresting bottom and top frames from trace stacks. This makes both binary and json trace files smaller, and also makes stacks shorter and more readable in the viewer. Change-Id: Ib9c80ccc280504f0e235f867f53f1d2652c41583 Reviewed-on: https://go-review.googlesource.com/5523Reviewed-by: Keith Randall <khr@golang.org> Run-TryBot: Dmitry Vyukov <dvyukov@google.com>
-
Austin Clements authored
This adds simple ELF test binaries generated by gcc and clang and compares the line tables returned by the line table reader against tables based on the output of readelf. The binaries were generated with # gcc --version | head -n1 gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2 # gcc -g -o line-gcc.elf line*.c # clang --version | head -n1 Ubuntu clang version 3.4-1ubuntu3 (tags/RELEASE_34/final) (based on LLVM 3.4) # clang -g -o line-clang.elf line*.c Change-Id: Id210fdc1d007ac9719e8f5dc845f2b94eed12234 Reviewed-on: https://go-review.googlesource.com/7070Reviewed-by: Nigel Tao <nigeltao@golang.org> Reviewed-by: Rob Pike <r@golang.org>
-
Austin Clements authored
This implements a LineReader for line tables that parallels the existing Reader for debug entries. This code is partly based on the debug subrepo's fork of dwarf, but it is a more complete (and, I believe, correct) implementation of the spec and exposes a more general API. While the debug subrepo's implementation exposed only a PC-to-line function, this version exposes the line table rows to the caller. This way the caller can make its own trade-offs when implementing PC-to-line (or line-to-PC), such as whether or not to build an index for fast lookup. Change-Id: Ie157bc817f55e940b6f2e1ae010c5a4e1f29c5c8 Reviewed-on: https://go-review.googlesource.com/6734Reviewed-by: Nigel Tao <nigeltao@golang.org>
-
Austin Clements authored
This factors out the code for finding which unit contains an offset in the "info" section. The new code also replaces linear search with a binary search. The line table reader will also need this functionality. Change-Id: I2076e4fc6719b6f06fd2796cbbc7548ec1876cb3 Reviewed-on: https://go-review.googlesource.com/6733Reviewed-by: Rob Pike <r@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Austin Clements authored
Change-Id: I1e6c6b3e2984528c0331e17755cc057e7199193e Reviewed-on: https://go-review.googlesource.com/7071Reviewed-by: Nigel Tao <nigeltao@golang.org> Reviewed-by: Rob Pike <r@golang.org>
-
Austin Clements authored
Change-Id: Ia6f9bd77a3d4250339dcb054edc76942864dd358 Reviewed-on: https://go-review.googlesource.com/6781Reviewed-by: Rob Pike <r@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Austin Clements authored
Previously, different DWARF sections had relocations applied in very different ways. .debug_info was relocated, but only on x86-64 and 386 and using hard-coded relocation section names instead of relocation links. .debug_abbrev and .debug_str were never relocated (which is excusable because they shouldn't need it). .debug_types sections were relocated on all architectures and found their relocation section using a relocation link because section names could be ambiguous. Simplify all of this so that every DWARF section that has a linked relocation section gets those relocations applied. This prepares this code to load .debug_line sections without the need for yet more ad hoc relocation logic. Change-Id: Ia00ac8e656b22f22bb31a5f6ef9b0f23cda64d19 Reviewed-on: https://go-review.googlesource.com/6780Reviewed-by: Rob Pike <r@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 09 Mar, 2015 8 commits
-
-
Nigel Tao authored
The testdata was generated by: convert video-001.png tmp1.tga cjpeg -rgb -sample 2x2,1x1,1x1 tmp1.tga > video-001.rgb.jpeg djpeg -nosmooth -targa video-001.rgb.jpeg > tmp2.tga convert tmp2.tga video-001.rgb.png rm tmp1.tga tmp2.tga Change-Id: I5da0591b9005c1c75e807311f157d385e0e20a38 Reviewed-on: https://go-review.googlesource.com/6910Reviewed-by: Rob Pike <r@golang.org>
-
Dave Cheney authored
Convert Node.Isddd to a boolean and simplify usage. - Node.Isddd converted to bool - Type.Isddd converted to bool - mkinlcall converted to take isddd as a bool - typecheckaste converted to take isddd as a bool - ascompatte converted to take isddd as a bool Change-Id: I52586145619c44182bb0c2c5d80a0a3fe3e50a07 Reviewed-on: https://go-review.googlesource.com/7172Reviewed-by: Keith Randall <khr@golang.org>
-
David Crawshaw authored
Removes a potential data race between os.Setenv and runtime.GOROOT, along with a bug where os.Setenv would only sometimes change the value of runtime.GOROOT. Change-Id: I7d2a905115c667ea6e73f349f3784a1d3e8f810d Reviewed-on: https://go-review.googlesource.com/6611Reviewed-by: Keith Randall <khr@golang.org>
-
David Crawshaw authored
Change-Id: I9d2c84237f7b1c4dc2e53adf249b7518dda81a21 Reviewed-on: https://go-review.googlesource.com/7165 Run-TryBot: David Crawshaw <crawshaw@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
-
David Crawshaw authored
Updates #7338. Change-Id: I859a73543352dbdd13ec05efb23a95aecbcc628a Reviewed-on: https://go-review.googlesource.com/7164Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Roger Peppe authored
The struct XMLName sets the default namespace, but that's not good enough for nested tags, because an earlier tag can set the implicit parents of a subsequent tag. This change makes sure that we always explicitly set the namespace on a tag when possible. See https://go-review.googlesource.com/#/c/5910/4/src/encoding/xml/marshal_test.go@628 for discussion. Change-Id: If1afc536471c0be83e5dd80381b598476ea3f44d Reviewed-on: https://go-review.googlesource.com/6927Reviewed-by: Nigel Tao <nigeltao@golang.org> Reviewed-by: Dave Cheney <dave@cheney.net>
-
Dave Cheney authored
More Node cleanups, these ones touch go.y. - convert Node.Implicit to bool - convert Node.Used to bool Change-Id: I85c7ff9e66cee7122b560adedc995166c874f2f2 Reviewed-on: https://go-review.googlesource.com/7124Reviewed-by: Keith Randall <khr@golang.org>
-
Dave Cheney authored
Updates #10119 Temporarily disable cgo by default to get the freebsd/arm builder running again. Change-Id: I4de1f896fcac650184df77c692b102ea6fb73bba Reviewed-on: https://go-review.googlesource.com/7125Reviewed-by: Andrew Gerrand <adg@golang.org>
-
- 08 Mar, 2015 4 commits
-
-
Minux Ma authored
Fix the build. This reverts commit e7398151. Change-Id: I979e138991c06b3295be08212d3ce80b30c2381b Reviewed-on: https://go-review.googlesource.com/7160Reviewed-by: Dave Cheney <dave@cheney.net> Reviewed-by: Minux Ma <minux@golang.org>
-
Michael Hudson-Doyle authored
Somehow, terribly embarrassingly, I lost part of the "re-enable -shared on amd64" patch when rebasing before it got submitted. This restores it and also fixes the addend to be the necessary -4. Change-Id: If71a09121d911a863bc07f1828ef76e3a54c1074 Reviewed-on: https://go-review.googlesource.com/6802Reviewed-by: Russ Cox <rsc@golang.org> Run-TryBot: Minux Ma <minux@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Mikio Hara authored
Change-Id: Ifcf7b96e67b63a08f410a7ba21e8bf4dd20e7d8e Reviewed-on: https://go-review.googlesource.com/7122Reviewed-by: Minux Ma <minux@golang.org>
-
Andrew Pilloud authored
The unix and windows getaddrinfo calls return a zone with IPv6 addresses. IPv6 link-local addresses returned are only valid on the given zone. When the zone is dropped, connections to the address will fail. This patch replaces IP with IPAddr in several internal resolver functions, and plumbs through the zone. Change-Id: Ifea891654f586f15b76988464f82e04a42ccff6d Reviewed-on: https://go-review.googlesource.com/5851Reviewed-by: Mikio Hara <mikioh.mikioh@gmail.com>
-
- 07 Mar, 2015 3 commits
-
-
Shenghou Ma authored
some x86 instructions (e.g. PINSRW) might store memory address in Prog.From3, so we must also rewrite Prog.From3 on nacl. Change-Id: I2a0da0f692ba321eba17fbc454d68aaafa133515 Signed-off-by: Shenghou Ma <minux@golang.org> Reviewed-on: https://go-review.googlesource.com/7074 TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Dave Cheney <dave@cheney.net>
-
Shenghou Ma authored
Also fixed a stack corruption bug for nacl/amd64p32. Change-Id: I64b821b16999c296a159137d971af3870053c621 Signed-off-by: Shenghou Ma <minux@golang.org> Reviewed-on: https://go-review.googlesource.com/7073Reviewed-by: Dave Cheney <dave@cheney.net>
-
tnt authored
Change-Id: I11b4cf00ceeb4441b865e0de3f1674095d1c32d0 Reviewed-on: https://go-review.googlesource.com/7043Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 06 Mar, 2015 8 commits
-
-
Dave Cheney authored
- make paramoutheap return a bool - convert Node.Assigned to a bool - convert Node.Captured to a bool - convert Node.Byval to a bool - convert Node.Dupok to a bool - convert Node.Wrapper to a bool - convert Node.Reslice to a bool Change-Id: I5b57c019f936c31d53db4db14459fb2b0aa72305 Reviewed-on: https://go-review.googlesource.com/7030Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Dave Cheney <dave@cheney.net>
-
Chris Manghane authored
Change-Id: Ia5115b15a79e1b2b53036646f1ed4b08225b220f Reviewed-on: https://go-review.googlesource.com/7051 Run-TryBot: Chris Manghane <cmang@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Matthew Dempsky authored
Change-Id: Ib3d7928bbdba9358e68a326a53effe483ec208ea Reviewed-on: https://go-review.googlesource.com/7061Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
-
Matthew Dempsky authored
Change-Id: Id27861d5449cc3565bc9e80aad671229598dbeb1 Reviewed-on: https://go-review.googlesource.com/7060 Run-TryBot: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Joël Stemmer authored
Change-Id: Ia9f39250619ea6e94157efceddfb2e02d35f3ae2 Reviewed-on: https://go-review.googlesource.com/7041Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
-
Ian Lance Taylor authored
Change-Id: I18b78677b2ac9a82560d5d787225d4fc46d451d3 Reviewed-on: https://go-review.googlesource.com/7050Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Ian Lance Taylor authored
Change-Id: I308588db2942e7110a2be22257843931941d92f1 Reviewed-on: https://go-review.googlesource.com/2622Reviewed-by: Peter Collingbourne <pcc@google.com> Reviewed-by: David Crawshaw <crawshaw@golang.org>
-
Ian Lance Taylor authored
The test used to import ../callback. I forget why that ever worked, but it probably had something to do with the shared libraries we used to use with SWIG. It doesn't work today. Change-Id: Ib83d6c398aa46bf2fc66320b47b6e6d9897ee0b7 Reviewed-on: https://go-review.googlesource.com/7004Reviewed-by: David Crawshaw <crawshaw@golang.org>
-