]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/pprof: disable new memory test
authorRuss Cox <rsc@golang.org>
Thu, 16 Oct 2014 18:58:11 +0000 (14:58 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 16 Oct 2014 18:58:11 +0000 (14:58 -0400)
It cannot run 'go tool pprof'. There is no guarantee that's installed.
It needs to build a temporary pprof binary and run that.
It also needs to skip the test on systems that can't build and
run binaries, namely android and nacl.

See src/cmd/nm/nm_test.go's TestNM for a template.

Update #8867
Status: Accepted

TBR=dvyukov
CC=golang-codereviews
https://golang.org/cl/153710043

src/runtime/malloc.go
src/runtime/pprof/mprof_test.go

index 9b4264f2b3daccedeb5ba3eeef3578b90ab24a77..876a2ddaa797104c310990a70e5c5c3b17ddf064 100644 (file)
@@ -40,6 +40,8 @@ type pageID uintptr
 // base address for all 0-byte allocations
 var zerobase uintptr
 
+//go:nowritebarrier
+
 // Allocate an object of size bytes.
 // Small objects are allocated from the per-P cache's free lists.
 // Large objects (> 32 kB) are allocated straight from the heap.
index 1880b9a7077614f4cb4dece22b75bc9b918292d7..76ac02f2b7d7f0c73be8909ac48652604c348815 100644 (file)
@@ -52,6 +52,7 @@ func allocatePersistent1K() {
 var memoryProfilerRun = 0
 
 func TestMemoryProfiler(t *testing.T) {
+       t.Skip("broken test - see issue 8867")
        // Create temp file for the profile.
        f, err := ioutil.TempFile("", "memprof")
        if err != nil {