- 20 Sep, 2015 1 commit
-
-
Tarmigan Casebolt authored
In the present code, there is no way for ok to ever return false, but it still a good idea to check it. Change-Id: I8f360018b33a5d85dabbbbec0f89ffc81f77ecbb Reviewed-on: https://go-review.googlesource.com/13956Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 19 Sep, 2015 4 commits
-
-
Dmitry Vyukov authored
Sometimes this read is instrumented by compiler when it creates a temp to take address, but sometimes it is not (e.g. for global vars compiler takes address of the global directly). Instrument convT2E/I similarly to chansend and mapaccess. Fixes #12664 Change-Id: Ia7807f15d735483996426c5f3aed60a33b279579 Reviewed-on: https://go-review.googlesource.com/14752Reviewed-by: Keith Randall <khr@golang.org> Run-TryBot: Dmitry Vyukov <dvyukov@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Brad Fitzpatrick authored
Temporary fix to get the arm5 builder happy again. Without hardware floating point, this test takes over 20 minutes to run. A proper solution would probably be to run all the benchmark tests, but with a much lower iteration count, just to exercise the code. Updates golang/go#12688 Change-Id: Ie56c93d3bf2a5a693a33217ba1b1df3c6c856442 Reviewed-on: https://go-review.googlesource.com/14775Reviewed-by: Dave Cheney <dave@cheney.net> Reviewed-by: Minux Ma <minux@golang.org>
-
Dave Cheney authored
intLiteral is used by the gins wrappers in arm64, ppc64 and mips64. Refactor the function to a method on gc.Node and update the callers to use the common copy. Change-Id: I2db90d801a9cb18f8526eb921e13daa75ca1cf6f Reviewed-on: https://go-review.googlesource.com/14744Reviewed-by: Aram Hăvărneanu <aram@mgk.ro> Reviewed-by: Dave Cheney <dave@cheney.net> Run-TryBot: Dave Cheney <dave@cheney.net> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Austin Clements authored
This test fails on arm64 and some amd64 OSs and fails on Linux/amd64 if you remove the first runtime.GC(), which should be unnecessary, and run it in all.bash (but not if you run it in isolation). I don't understand any of these failures, so for now just remove this test. TBR=rlh Change-Id: Ibed00671126000ed7dc5b5d4af1f86fe4a1e30e1 Reviewed-on: https://go-review.googlesource.com/14767Reviewed-by: Austin Clements <austin@google.com> Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 18 Sep, 2015 17 commits
-
-
Austin Clements authored
Currently when the GC prints an object for debugging (e.g., for a failed invalidptr or checkmark check), it dumps the entire object. To avoid inundating the user with output for really large objects, limit this to printing just the first 128 words (which are most likely to be useful in identifying the type of an object) and the 32 words around the problematic field. Change-Id: Id94a5c9d8162f8bd9b2a63bf0b1bfb0adde83c68 Reviewed-on: https://go-review.googlesource.com/14764Reviewed-by: Rick Hudson <rlh@golang.org>
-
Austin Clements authored
By default, the runtime panics if it detects a pointer to an unallocated span. At this point, this usually catches bad uses of unsafe or cgo in user code (though it could also catch runtime bugs). Unfortunately, the rather cryptic error misleads users, offers users little help with debugging their own problem, and offers the Go developers little help with root-causing. Improve the error message in various ways. First, the wording is improved to make it clearer what condition was detected and to suggest that this may be the result of incorrect use of unsafe or cgo. Second, we add a dump of the object containing the bad pointer so that there's at least some hope of figuring out why a bad pointer was stored in the Go heap. Change-Id: I57b91b12bc3cb04476399d7706679e096ce594b9 Reviewed-on: https://go-review.googlesource.com/14763Reviewed-by: Rick Hudson <rlh@golang.org>
-
Tarmigan Casebolt authored
Change-Id: I9bd5c1b66fd90f0b54bd1a8f3e57b6830d2b7733 Reviewed-on: https://go-review.googlesource.com/13846Reviewed-by: Adam Langley <agl@golang.org> Run-TryBot: Adam Langley <agl@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Rob Pike authored
Change-Id: Iaa01d34caf09c12c017dc0379d4fe1d2cffd5340 Reviewed-on: https://go-review.googlesource.com/14728Reviewed-by: Rob Pike <r@golang.org>
-
Rob Pike authored
Add Scanner.Buffer, which lets the user give a buffer to the scanner and set the maximum token size. We call it Buffer not SetBuffer for consistency with Split, which perhaps should have been called SetSplit; too late regardless. Both Buffer and Split panic if they are called after Scan. The panic in Split is new, but the comment on the method already said it needed to be called first, so we might as well add the verification while we're doing it for Buffer. This method allows precise user control of storage. Fixes #11702. Change-Id: I80e3d0e3830562fdabd4f7b08f322e1378248c39 Reviewed-on: https://go-review.googlesource.com/14599Reviewed-by: Andrew Gerrand <adg@golang.org> Reviewed-by: roger peppe <rogpeppe@gmail.com>
-
Brad Fitzpatrick authored
Instead of a 10 second test unit, make it 13 sub-second ones. This takes advantage of multiple builders better. Fixes #12623 Change-Id: I3fb2eb02f899f25749e34b546b9d41b742a746cd Reviewed-on: https://go-review.googlesource.com/14738Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Rob Pike authored
Add some error catches to prevent looping at EOF. Also give better diagnostics. Also add tests for these cases. Fixes #12656. Change-Id: I1355fc149b71c868e740bfa53de29c25d160777d Reviewed-on: https://go-review.googlesource.com/14710Reviewed-by: Andrew Gerrand <adg@golang.org>
-
Rob Pike authored
On amd64, the program TEXT foo0(SB),7,$-8 ADDQ R520, R1 RET used to trigger this error because R520 was being passed through to obj: asm: doasm: notfound ft=23 tt=23 00000 (x.s:2) ADDQ 0, 0 23 23 Now it gets this one, as it is indeed a parse error: x.s:2: illegal addressing mode for symbol R520 This couldn't be fixed until #12632 had been fixed for arm64. Fixes #12470. Change-Id: I19830c4ae9337887b93f85d9a239e2b89dbb2219 Reviewed-on: https://go-review.googlesource.com/14691Reviewed-by: Aram Hăvărneanu <aram@mgk.ro>
-
Robert Griesemer authored
Fixes #12667. Change-Id: I68e73e26da9938606304163ae2637e3c6bacd6f6 Reviewed-on: https://go-review.googlesource.com/14722Reviewed-by: Alan Donovan <adonovan@google.com>
-
Robert Griesemer authored
- simpler code - closer to gc error messages - more context information in some cases Change-Id: Iad155a887b838a4fc1edf719eed18269670b5ede Reviewed-on: https://go-review.googlesource.com/14720Reviewed-by: Alan Donovan <adonovan@google.com>
-
Robert Griesemer authored
- more uniform error messages - removed unused code Change-Id: I625d5c2e51a543450ad091f97cec538023ddb1dd Reviewed-on: https://go-review.googlesource.com/14692Reviewed-by: Alan Donovan <adonovan@google.com>
-
Robert Griesemer authored
Also: Added initial set of (missing and/or spread out) tests for binary operations. Fixes #11896. Change-Id: I037436d8318c18f9758b435eca2d45b3bdd17ef8 Reviewed-on: https://go-review.googlesource.com/14660Reviewed-by: Alan Donovan <adonovan@google.com>
-
Robert Griesemer authored
Change-Id: I101e9bc722f5ba4fa9941cb544d9c276fd4c0b8c Reviewed-on: https://go-review.googlesource.com/14651Reviewed-by: Alan Donovan <adonovan@google.com>
-
Robert Griesemer authored
Fixes #10260. Change-Id: I52d059144608912e6f7f9516e4961a75e9463355 Reviewed-on: https://go-review.googlesource.com/14644Reviewed-by: Alan Donovan <adonovan@google.com>
-
Dave Cheney authored
This one of a set of changes to make the transition away from NodeList easier by removing cases in which NodeList doesn't act semi-trivially like a []*Node. This CL was originally prepared by Josh Bleecher Snyder <josharian@gmail.com>. This change passes go build -toolexec 'toolstash -cmp' -a std. Change-Id: Ifd73501e06e8ea5efd028b6d473b3e5d1b07a5ac Reviewed-on: https://go-review.googlesource.com/14570Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Shenghou Ma authored
cmd/dist needs to re-exec or open itself to detect GOARM (CL 3973) and detect host machine endianness (CL 14460). Change-Id: If6438831ab0715ba8e236d64bb2c7c1bde1470aa Reviewed-on: https://go-review.googlesource.com/14476Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Håvard Haugen authored
Passes go build -a -toolexec 'toolstash -cmp' std cmp. Change-Id: I7567355d405c976c5d91a0cd4e9486ebeb348dbb Reviewed-on: https://go-review.googlesource.com/14682Reviewed-by: Dave Cheney <dave@cheney.net> Run-TryBot: Dave Cheney <dave@cheney.net> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 17 Sep, 2015 10 commits
-
-
Håvard Haugen authored
A followup CL will rewrite listsort to use the new cmpstackvarlt and change cmpstackvar to avoid stringsCompare. Change-Id: Idf0857a3bd67f9e2243ba82aa0bff510612927c3 Reviewed-on: https://go-review.googlesource.com/14611Reviewed-by: Dave Cheney <dave@cheney.net>
-
Marvin Stenger authored
Made use of range statement in for loops. Cleaning along the way: -remove unnecessary variable declarations -rename variables -remove dead code This change passes go build -toolexec 'toolstash -cmp' -a std. Change-Id: Ife8c2a98482a81ba91f5bbb65142d9f3dc46d6ee Reviewed-on: https://go-review.googlesource.com/14379 Run-TryBot: Dave Cheney <dave@cheney.net> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Dave Cheney <dave@cheney.net>
-
Rob Pike authored
The definition of 'truth' used by if etc. is not trivial to compute, so publish the implementation to allow custom template functions to have the same definition as the template language itself. Fixes #12033. Change-Id: Icdfd6039722d7d3f984ba0905105eb3253e14831 Reviewed-on: https://go-review.googlesource.com/14593Reviewed-by: Andrew Gerrand <adg@golang.org>
-
Rob Pike authored
This is understood, obvious (to me), and well known but has not been clearly documented. Fixes #11117. Change-Id: Ib2b1e318924748d1eac0d735ad6286533be7fd39 Reviewed-on: https://go-review.googlesource.com/14693Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
David Crawshaw authored
Change-Id: If65e5e55b359a61740d2ef185147bb6df90e0b0c Reviewed-on: https://go-review.googlesource.com/14654Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
-
Aram Hăvărneanu authored
Add CS as an alias for HS, and CC as an alias for LO, otherwise CSINV CS, R1, R2, R3 was interpreted as CSINV 0, R1, R2, R3 Also fix the corresponding faulty test. Fixes #12632 Updates #12470 Change-Id: I974cfc7e5ced682d4754ba09b0b102cb08a46567 Reviewed-on: https://go-review.googlesource.com/14680Reviewed-by: Rob Pike <r@golang.org>
-
Aaron Jacobs authored
In particular, don't use goto and do restrict the behavior to darwin. This addresses comments from http://golang.org/cl/14484. Change-Id: I5b99e1762d1c5b27fdd12b72a5c6d981f6a92f0f Reviewed-on: https://go-review.googlesource.com/14673Reviewed-by: Rob Pike <r@golang.org>
-
Shawn Walker-Salas authored
The placement and invocation of traceGoSysCall when using entersyscallblock() instead of entersyscall() differs enough that the TestTraceSymbolize test can fail on some platforms. This change moves the invocation of traceGoSysCall for entersyscall() so that the same number of "frames to skip" are present in the trace as when entersyscallblock() is used ensuring system call traces remain identical regardless of internal implementation choices. Fixes golang/go#12056 Change-Id: I8361e91aa3708f5053f98263dfe9feb8c5d1d969 Reviewed-on: https://go-review.googlesource.com/13861 Run-TryBot: Dmitry Vyukov <dvyukov@google.com> Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
-
Alex Brainman authored
As per iant suggestion during issue #12587 crash investigation. Also adjust incorrect throw message in sysUsed while we are here. Change-Id: Ice07904fdd6e0980308cb445965a696d26a1b92e Reviewed-on: https://go-review.googlesource.com/14633Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Aaron Jacobs authored
The man page for sigaction(2) on OS X doesn't guarantee that SA_RESTART will work for open(2) on regular files: The affected system calls include open(2), read(2), write(2), sendto(2), recvfrom(2), sendmsg(2) and recvmsg(2) on a communications channel or a slow device (such as a terminal, but not a regular file) and during a wait(2) or ioctl(2). I've never observed EINTR from open(2) for a traditional file system such as HFS+, but it's easy to observe with a fuse file system that is slightly slow (cf. https://goo.gl/UxsVgB). After this change, the problem can no longer be reproduced when calling os.OpenFile. Fixes #11180. Change-Id: I967247430e20a7d29a285b3d76bf3498dc4773db Reviewed-on: https://go-review.googlesource.com/14484Reviewed-by: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 16 Sep, 2015 8 commits
-
-
David Crawshaw authored
Change-Id: I81a7f22be827519b5290b4acbcba357680cad3c4 Reviewed-on: https://go-review.googlesource.com/14605Reviewed-by: Rob Pike <r@golang.org>
-
Michael Hudson-Doyle authored
Not sure how I managed to do this, or get it past review. Change-Id: I141b97ef8e09dcc9c910c45493a584a3dced2b28 Reviewed-on: https://go-review.googlesource.com/14634Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Robert Griesemer authored
Fixes 11829. Change-Id: I2e39f61e12953147b0cd6a11d29179c500c94964 Reviewed-on: https://go-review.googlesource.com/14566Reviewed-by: Chris Manghane <cmang@golang.org>
-
Robert Griesemer authored
Fixes #11611. Change-Id: I63d35cf15c3be759c899e3e561e631330dcc0bbb Reviewed-on: https://go-review.googlesource.com/14565 Run-TryBot: Robert Griesemer <gri@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Chris Manghane <cmang@golang.org>
-
Rob Pike authored
Change-Id: I94af55bb894409b77bd87df36be9471dcc544fda Reviewed-on: https://go-review.googlesource.com/14627Reviewed-by: Rob Pike <r@golang.org>
-
Spencer Nelson authored
Add a Read function to Rand which reads random bytes into a buffer. Fixes #8330 Change-Id: I85b90277b8be9287c6697def8dbefe0029b6ee06 Reviewed-on: https://go-review.googlesource.com/14522Reviewed-by: Rob Pike <r@golang.org>
-
Ilya Tocar authored
Use MOVUPS to zero 16 bytes at a time. results (haswell): name old time/op new time/op delta ClearFat8-48 0.62ns ± 2% 0.62ns ± 1% ~ (p=0.085 n=20+15) ClearFat12-48 0.93ns ± 2% 0.93ns ± 2% ~ (p=0.757 n=19+19) ClearFat16-48 1.23ns ± 1% 1.23ns ± 1% ~ (p=0.896 n=19+17) ClearFat24-48 1.85ns ± 2% 1.84ns ± 0% -0.51% (p=0.023 n=20+15) ClearFat32-48 2.45ns ± 0% 2.46ns ± 2% ~ (p=0.053 n=17+18) ClearFat40-48 1.99ns ± 0% 0.92ns ± 2% -53.54% (p=0.000 n=19+20) ClearFat48-48 2.15ns ± 1% 0.92ns ± 2% -56.93% (p=0.000 n=19+20) ClearFat56-48 2.46ns ± 1% 1.23ns ± 0% -49.98% (p=0.000 n=19+14) ClearFat64-48 2.76ns ± 0% 2.14ns ± 1% -22.21% (p=0.000 n=17+17) ClearFat128-48 5.21ns ± 0% 3.99ns ± 0% -23.46% (p=0.000 n=17+19) ClearFat256-48 10.3ns ± 4% 7.7ns ± 0% -25.37% (p=0.000 n=20+17) ClearFat512-48 20.2ns ± 4% 15.0ns ± 1% -25.58% (p=0.000 n=20+17) ClearFat1024-48 39.7ns ± 2% 29.7ns ± 0% -25.05% (p=0.000 n=19+19) Change-Id: I200401eec971b2dd2450c0651c51e378bd982405 Reviewed-on: https://go-review.googlesource.com/14408Reviewed-by: Keith Randall <khr@golang.org> Run-TryBot: Keith Randall <khr@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Klaus Post authored
IEEE is the most commonly used CRC-32 polynomial, used by zip, gzip and others. Based on http://www.intel.com/content/dam/www/public/us/en/documents/white-papers/fast-crc-computation-generic-polynomials-pclmulqdq-paper.pdf benchmark old ns/op new ns/op delta BenchmarkIEEECrc1KB-8 3193 352 -88.98% BenchmarkIEEECrc4KB-8 5025 1307 -73.99% BenchmarkCastagnoliCrc1KB-8 126 126 +0.00% benchmark old MB/s new MB/s speedup BenchmarkIEEECrc1KB-8 320.68 2901.92 9.05x BenchmarkIEEECrc4KB-8 815.08 3131.80 3.84x BenchmarkCastagnoliCrc1KB-8 8100.80 8109.78 1.00x Change-Id: I99c9a48365f631827f516e44f97e86155f03cb90 Reviewed-on: https://go-review.googlesource.com/14080Reviewed-by: Keith Randall <khr@golang.org>
-