Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for crashDumpsAllThreadsLoop (0.42 sec)

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

    }
    
    func CrashDumpsAllThreads() {
    	const count = 4
    	runtime.GOMAXPROCS(count + 1)
    
    	chans := make([]chan bool, count)
    	for i := range chans {
    		chans[i] = make(chan bool)
    		go crashDumpsAllThreadsLoop(i, chans[i])
    	}
    
    	// Wait for all the goroutines to start executing.
    	for _, c := range chans {
    		<-c
    	}
    
    	// Tell our parent that all the goroutines are executing.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 22 00:34:25 UTC 2021
    - 917 bytes
    - Viewed (0)
  2. src/runtime/crash_unix_test.go

    	// "goroutine running on other thread; stack unavailable".
    	out := outbuf.Bytes()
    	n := bytes.Count(out, []byte("main.crashDumpsAllThreadsLoop("))
    	if n != 4 {
    		t.Errorf("found %d instances of main.crashDumpsAllThreadsLoop; expected 4", n)
    		t.Logf("%s", out)
    	}
    }
    
    func TestPanicSystemstack(t *testing.T) {
    	// Test that GOTRACEBACK=crash prints both the system and user
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 20:11:47 UTC 2023
    - 9.2K bytes
    - Viewed (0)
Back to top