Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TracebackAncestors (0.26 sec)

  1. src/runtime/testdata/testprog/traceback_ancestors.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"bytes"
    	"fmt"
    	"runtime"
    	"strings"
    )
    
    func init() {
    	register("TracebackAncestors", TracebackAncestors)
    }
    
    const numGoroutines = 3
    const numFrames = 2
    
    func TracebackAncestors() {
    	w := make(chan struct{})
    	recurseThenCallGo(w, numGoroutines, numFrames, true)
    	<-w
    	printStack()
    	close(w)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 17:14:59 UTC 2022
    - 2.1K bytes
    - Viewed (0)
Back to top