aboutsummaryrefslogtreecommitdiff
path: root/test/recover4.go
AgeCommit message (Collapse)Author
2018-01-10all: use Fatalf instead of Fatal if format is givenKunpei Sakai
Change-Id: I30e9b938bb19ed4e674c3ea4a1cd389b9c4f0b88 Reviewed-on: https://go-review.googlesource.com/86875 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
2016-05-02all: make copyright headers consistent with one space after periodEmmanuel Odeke
Follows suit with https://go-review.googlesource.com/#/c/20111. Generated by running $ grep -R 'Go Authors. All' * | cut -d":" -f1 | while read F;do perl -pi -e 's/Go Authors. All/Go Authors. All/g' $F;done The code in cmd/internal/unvendor wasn't changed. Fixes #15213 Change-Id: I4f235cee0a62ec435f9e8540a1ec08ae03b1a75f Reviewed-on: https://go-review.googlesource.com/21819 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
2015-09-16test: move allocation before munmap in recover4Michael Hudson-Doyle
recover4 allocates 16 pages of memory via mmap, makes a 4 page hole in it with munmap, allocates another 16 pages of memory via normal allocation and then tries to copy from one to the other. For some reason on arm64 (but no other platform I have tested) the second allocation sometimes causes the runtime to ask the kernel for 4 additional pages of memory -- which the kernel satisfies by remapping the pages that were just unmapped! Moving the second allocation before the munmap fixes this behaviour, I can run recover4 tens of thousands of times without failure with this fix vs a failure rate of ~0.5% before. Fixes #12549 Change-Id: I490b895b606897e4f7f25b1b51f5d485a366fffb Reviewed-on: https://go-review.googlesource.com/14632 Reviewed-by: Dave Cheney <dave@cheney.net>
2015-03-17test: fix recover4 test on 64kb systemsDave Cheney
Fix recover4.go to work on 64kb systems. Change-Id: I211cb048de1268a8bbac77c6f3a1e0b8c8277594 Reviewed-on: https://go-review.googlesource.com/7673 Reviewed-by: Minux Ma <minux@golang.org>
2015-03-17Revert "test: disable recover4 test to fix ppc64 builds"Dave Cheney
This reverts commit 1313e7982f44c24948e73c4795d9606265d36871. Change-Id: I96cc58baf71156fdfbf8fd61332744bcc3ea52e5 Reviewed-on: https://go-review.googlesource.com/7670 Reviewed-by: Dave Cheney <dave@cheney.net>
2015-03-17test: disable recover4 test to fix ppc64 buildsDave Cheney
Updates #10180 Temporarily disable this test on ppc64 systems as all our builders use 64k page size. We need a portable way to get the page size of the host so we can correctly size the mmap hole. Change-Id: Ibd36ebe2f54cf75a44667e2070c385f0daaca481 Reviewed-on: https://go-review.googlesource.com/7652 Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-03-16test: add test that variables captured by deferred funcs are current on faultRuss Cox
This came up in private mail. It works today and I want to make sure it stays working. Change-Id: I13ebdc2dfadb3c72d7f179be89883137320c05d0 Reviewed-on: https://go-review.googlesource.com/7390 Reviewed-by: Austin Clements <austin@google.com> Reviewed-by: Rob Pike <r@golang.org>