Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 61 for goexit0 (0.19 sec)

  1. src/cmd/go/testdata/script/test_fuzz_mutate_crash.txt

    stdout 'testdata[/\\]fuzz[/\\]FuzzWithNilPanic[/\\]'
    stdout 'panic called with nil argument|test executed panic.nil. or runtime.Goexit'
    go run check_testdata.go FuzzWithNilPanic
    
    ! go test -run=FuzzWithGoexit -fuzz=FuzzWithGoexit -fuzztime=100x -fuzzminimizetime=1000x
    stdout 'testdata[/\\]fuzz[/\\]FuzzWithGoexit[/\\]'
    stdout 'runtime.Goexit'
    go run check_testdata.go FuzzWithGoexit
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  2. test/inline_caller.go

    }
    
    // -1 means don't care
    var expected = []wantFrame{
    	0: {"main.h", 36},
    	1: {"main.g", 31},
    	2: {"main.f", 27},
    	3: {"main.testCaller", 42},
    	4: {"main.main", 68},
    	5: {"runtime.main", -1},
    	6: {"runtime.goexit", -1},
    }
    
    func main() {
    	for i := 0; i <= 6; i++ {
    		frame := testCaller(i) // line 68
    		fn := runtime.FuncForPC(frame.pc)
    		if expected[i].line >= 0 && frame.line != expected[i].line {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 08 21:54:04 UTC 2019
    - 1.4K bytes
    - Viewed (0)
  3. src/sync/oncefunc_test.go

    			return
    		}
    		t.Fatalf("%s: want nil panic, got %v", label, p)
    	})
    }
    
    func TestOnceFuncGoexit(t *testing.T) {
    	// If f calls Goexit, the results are unspecified. But check that f doesn't
    	// get called twice.
    	calls := 0
    	f := sync.OnceFunc(func() {
    		calls++
    		runtime.Goexit()
    	})
    	var wg sync.WaitGroup
    	for i := 0; i < 2; i++ {
    		wg.Add(1)
    		go func() {
    			defer wg.Done()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 17:31:33 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  4. src/testing/testing.go

    	c.Fail()
    
    	// Calling runtime.Goexit will exit the goroutine, which
    	// will run the deferred functions in this goroutine,
    	// which will eventually run the deferred lines in tRunner,
    	// which will signal to the test loop that this test is done.
    	//
    	// A previous version of this code said:
    	//
    	//	c.duration = ...
    	//	c.signal <- c.self
    	//	runtime.Goexit()
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  5. src/runtime/asm_riscv64.s

    	MOV	savedX27-8(SP), g
    	RET
    
    // func goexit(neverCallThisFunction)
    // The top-most function running on a goroutine
    // returns to goexit+PCQuantum.
    TEXT runtime·goexit(SB),NOSPLIT|NOFRAME|TOPFRAME,$0-0
    	MOV	ZERO, ZERO	// NOP
    	JMP	runtime·goexit1(SB)	// does not return
    	// traceback from goexit1 must hit code range of goexit
    	MOV	ZERO, ZERO	// NOP
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 13:57:06 UTC 2023
    - 27K bytes
    - Viewed (0)
  6. src/runtime/pprof/proto.go

    	// the stack and we have return PCs anyway.
    	frames := runtime.CallersFrames([]uintptr{addr})
    	frame, more := frames.Next()
    	if frame.Function == "runtime.goexit" {
    		// Short-circuit if we see runtime.goexit so the loop
    		// below doesn't allocate a useless empty location.
    		return nil, 0
    	}
    
    	symbolizeResult := lookupTried
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 13 20:40:52 UTC 2023
    - 25.7K bytes
    - Viewed (0)
  7. src/testing/example.go

    // If the test is chatty/verbose, it'll print a success message to stdout.
    // If recovered is non-nil, it'll panic with that value.
    // If the test panicked with nil, or invoked runtime.Goexit, it'll be
    // made to fail and panic with errNilPanicOrGoexit
    func (eg *InternalExample) processRunResult(stdout string, timeSpent time.Duration, finished bool, recovered any) (passed bool) {
    	passed = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  8. src/runtime/os_plan9.go

    	if ns == 0 {
    		return scratch
    	}
    	return ns
    }
    
    var goexits = []byte("go: exit ")
    var emptystatus = []byte("\x00")
    var exiting uint32
    
    func goexitsall(status *byte) {
    	var buf [_ERRMAX]byte
    	if !atomic.Cas(&exiting, 0, 1) {
    		return
    	}
    	getg().m.locks++
    	n := copy(buf[:], goexits)
    	n = copy(buf[n:], gostringnocopy(status))
    	pid := getpid()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  9. src/internal/abi/symtab.go

    	// The traceback routine stop at such a function and consider that a
    	// successful, complete traversal of the stack.
    	// Examples of TopFrame functions include goexit, which appears
    	// at the top of a user goroutine stack, and mstart, which appears
    	// at the top of a system goroutine stack.
    	FuncFlagTopFrame FuncFlag = 1 << iota
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 14:25:22 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  10. pkg/test/failer.go

    	e.Fatal("fail now called")
    }
    
    func (e *errorWrapper) Fatal(args ...any) {
    	e.mu.Lock()
    	defer e.mu.Unlock()
    	if e.failed == nil {
    		e.failed = errors.New(fmt.Sprint(args...))
    	}
    	runtime.Goexit()
    }
    
    func (e *errorWrapper) Fatalf(format string, args ...any) {
    	e.Fatal(fmt.Sprintf(format, args...))
    }
    
    func (e *errorWrapper) Helper() {
    }
    
    func (e *errorWrapper) Skip(args ...any) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Jul 15 23:58:50 UTC 2023
    - 3.5K bytes
    - Viewed (0)
Back to top