]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove unused function in test
authorIan Lance Taylor <iant@golang.org>
Fri, 8 Jul 2016 04:01:21 +0000 (21:01 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 23 Aug 2016 14:09:52 +0000 (14:09 +0000)
Change-Id: I43f14cdd9eb4a1d5471fc88c1b4759ceb2c674cf
Reviewed-on: https://go-review.googlesource.com/24817
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/testdata/testprogcgo/threadpprof.go

index fdeee6910dda0260d4b7337dcc2555a04fcbc803..f057d591c34ba47091ad87270915f985532e1f34 100644 (file)
@@ -39,17 +39,6 @@ struct cgoTracebackArg {
        uintptr_t  max;
 };
 
-static void *pprofThread(void* p) {
-       time_t start;
-
-       (void)p;
-       start = time(NULL);
-       while (__sync_add_and_fetch(&cpuHogThreadCount, 0) < 2 && time(NULL) - start < 2) {
-               cpuHogThread();
-       }
-}
-
-
 // pprofCgoThreadTraceback is passed to runtime.SetCgoTraceback.
 // For testing purposes it pretends that all CPU hits in C code are in cpuHog.
 void pprofCgoThreadTraceback(void* parg) {