Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 54 for goexits (0.14 sec)

  1. src/iter/pull_test.go

    func goexitSeq() Seq[int] {
    	return func(yield func(int) bool) {
    		runtime.Goexit()
    	}
    }
    
    func goexitCleanupSeq() Seq[int] {
    	return func(yield func(int) bool) {
    		for {
    			if !yield(55) {
    				runtime.Goexit()
    			}
    		}
    	}
    }
    
    func TestPull2Goexit(t *testing.T) {
    	t.Run("next", func(t *testing.T) {
    		var next func() (int, int, bool)
    		var stop func()
    		if !goexits(t, func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:28 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  2. src/iter/iter.go

    			// Propagate panics and goexits from seq.
    			if panicValue != nil {
    				if panicValue == goexitPanicValue {
    					// Propagate runtime.Goexit from seq.
    					runtime.Goexit()
    				} else {
    					panic(panicValue)
    				}
    			}
    		}
    	}
    	return next, stop
    }
    
    // goexitPanicValue is a sentinel value indicating that an iterator
    // exited via runtime.Goexit.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:28 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. src/runtime/panic.go

    // If all other goroutines exit, the program crashes.
    func Goexit() {
    	// Create a panic object for Goexit, so we can recognize when it might be
    	// bypassed by a recover().
    	var p _panic
    	p.goexit = true
    
    	p.start(getcallerpc(), unsafe.Pointer(getcallersp()))
    	for {
    		fn, ok := p.nextDefer()
    		if !ok {
    			break
    		}
    		fn()
    	}
    
    	goexit1()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  4. src/runtime/stubs.go

    type neverCallThisFunction struct{}
    
    // goexit is the return stub at the top of every goroutine call stack.
    // Each goroutine stack is constructed as if goexit called the
    // goroutine's entry point function, so that when the entry point
    // function returns, it will return to goexit, which will call goexit1
    // to perform the actual exit.
    //
    // This function must never be called directly. Call goexit1 instead.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  5. src/os/exec/exec_test.go

    	// immediately) to unexpectedly block on reading from the pipe.
    	var (
    		nHangs       = runtime.GOMAXPROCS(0)
    		nExits       = runtime.GOMAXPROCS(0)
    		hangs, exits sync.WaitGroup
    	)
    	hangs.Add(nHangs)
    	exits.Add(nExits)
    
    	// ready is done when the goroutines have done as much work as possible to
    	// prepare to create subprocesses. It isn't strictly necessary for the test,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  6. releasenotes/notes/51377.yaml

    apiVersion: release-notes/v2
    kind: bug-fix
    area: traffic-management
    
    issue:
      - 51377
    
    releaseNotes:
    - |
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 03:53:23 UTC 2024
    - 201 bytes
    - Viewed (0)
  7. pkg/test/framework/test.go

    	//                         })
    	//                     // Exits before T2a and T2b are run.
    	//                 })
    	//         })
    	// }
    	//
    	// In the example above, non-parallel parents T1 and T2 contain parallel children T1a, T1b, T2a, T2b.
    	//
    	// Since both T1 and T2 are non-parallel, they are run synchronously: T1 followed by T2. After T1 exits,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  8. src/runtime/proc.go

    	schedule()
    }
    
    // Finishes execution of the current goroutine.
    func goexit1() {
    	if raceenabled {
    		racegoend()
    	}
    	trace := traceAcquire()
    	if trace.ok() {
    		trace.GoEnd()
    		traceRelease(trace)
    	}
    	mcall(goexit0)
    }
    
    // goexit continuation on g0.
    func goexit0(gp *g) {
    	gdestroy(gp)
    	schedule()
    }
    
    func gdestroy(gp *g) {
    	mp := getg().m
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  9. doc/next/3-tools.md

    <!-- go.dev/issue/27005, CL 585401 -->
    The new `go` `mod` `tidy` `-diff` flag causes the command not to modify
    the files but instead print the necessary changes as a unified diff.
    It exits with a non-zero code if updates are needed.
    
    <!-- go.dev/issue/52792, CL 562775 -->
    <!-- TODO: Improve this if needed. -->
    The `go` `list` `-m` `-json` command now includes new `Sum` and `GoModSum` fields.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 19:06:07 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/classloader/TransformErrorHandler.java

         * Call this when an error occurs during class loading.
         * This method only records the error but doesn't throw any exceptions.
         * The exception will be rethrown (wrapped in a ClassNotFoundException) when this thread enters or exits the class loading scope.
         * <p>
         * This may be called outside the class loading scope.
         *
         * @param className the name of the class that was loading
         * @param cause the original exception
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top