- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for printStack (0.17 sec)
-
src/cmd/go/testdata/script/build_cache_trimpath.txt
# Verifies golang.org/issue/35412. go get example.com/stack@v1.0.0 go run -trimpath printstack.go stdout '^example.com/stack@v1.0.0/stack.go$' go get example.com/stack@v1.0.1 go run -trimpath printstack.go stdout '^example.com/stack@v1.0.1/stack.go$' -- $WORK/hello.go -- package main func main() { println("hello") } -- $WORK/printstack.go -- // +build ignore package main import ( "fmt"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 28 17:19:14 UTC 2021 - 865 bytes - Viewed (0) -
src/runtime/testdata/testprog/traceback_ancestors.go
const numGoroutines = 3 const numFrames = 2 func TracebackAncestors() { w := make(chan struct{}) recurseThenCallGo(w, numGoroutines, numFrames, true) <-w printStack() close(w) } var ignoreGoroutines = make(map[string]bool) func printStack() { buf := make([]byte, 1024) for { n := runtime.Stack(buf, true) if n < len(buf) { all := string(buf[:n]) var saved string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 17:14:59 UTC 2022 - 2.1K bytes - Viewed (0) -
src/runtime/debug/stack.go
// they are running. package debug import ( "internal/poll" "os" "runtime" _ "unsafe" // for linkname ) // PrintStack prints to standard error the stack trace returned by runtime.Stack. func PrintStack() { os.Stderr.Write(Stack()) } // Stack returns a formatted stack trace of the goroutine that calls it.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 15:19:04 UTC 2024 - 3.2K bytes - Viewed (0) -
cmd/metacache-manager.go
debug.PrintStack() } return b } m.mu.RUnlock() m.mu.Lock() defer m.mu.Unlock() // See if someone else fetched it while we waited for the lock. b, ok = m.buckets[bucket] if ok { if b.bucket != bucket { logger.Info("getBucket: newly cached bucket %s does not match this bucket %s", b.bucket, bucket) debug.PrintStack() } return b }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Oct 25 00:44:15 UTC 2022 - 5.2K bytes - Viewed (0) -
cmd/kubeadm/app/util/pkiutil/testing/testing.go
thisTest = frame.Function break } if !more { break } } if len(thisTest) == 0 { fmt.Println("could not determine test for private key fixture") debug.PrintStack() return pkiutil.GeneratePrivateKey(keyType) } if thisTest != lastTest { rsa = 0 ecdsa = 0 lastTest = thisTest } keyName := "" switch keyType {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 31 21:49:21 UTC 2024 - 3K bytes - Viewed (0) -
cmd/metacache-bucket.go
return metacache{} } if o.Bucket != b.bucket { logger.Info("bucketMetacache.findCache: bucket %s does not match this bucket %s", o.Bucket, b.bucket) debug.PrintStack() return metacache{} } // Grab a write lock, since we create one if we cannot find one. b.mu.Lock() defer b.mu.Unlock() // Check if exists already. if c, ok := b.caches[o.ID]; ok {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 6.6K bytes - Viewed (0) -
src/internal/bisect/bisect.go
var buf [50]byte b := AppendMarker(buf[:0], h) b = append(b, '\n') _, err := w.Write(b) return err } // printStack prints to w a multi-line report containing a formatting of the call stack stk, // with each line preceded by the marker for h. func printStack(w Writer, h uint64, stk []uintptr) error { buf := make([]byte, 0, 2048) var prefixBuf [100]byte prefix := AppendMarker(prefixBuf[:0], h)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 17:28:43 UTC 2024 - 22.9K bytes - Viewed (0) -
internal/grid/manager.go
defer func() { if debugPrint { fmt.Printf("grid: Handler returning from: %v %v\n", req.Method, req.URL) } if r := recover(); r != nil { debug.PrintStack() err := fmt.Errorf("grid: panic: %v\n", r) gridLogIf(context.Background(), err, err.Error()) w.WriteHeader(http.StatusInternalServerError) } }() if debugPrint {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 17:40:33 UTC 2024 - 9.8K bytes - Viewed (0) -
internal/ioutil/ioutil.go
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 22 23:07:14 UTC 2024 - 10.2K bytes - Viewed (0) -
src/cmd/go/internal/vcweb/vcweb.go
func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request) { s.logger.Printf("serving %s", req.URL) defer func() { if v := recover(); v != nil { debug.PrintStack() s.logger.Fatal(v) } }() urlPath := req.URL.Path if !strings.HasPrefix(urlPath, "/") { urlPath = "/" + urlPath } clean := path.Clean(urlPath)[1:] if clean == "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 12.1K bytes - Viewed (0)