Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 735 for dying (0.13 sec)

  1. src/runtime/print.go

    	gp := getg()
    	// Don't use the writebuf if gp.m is dying. We want anything
    	// written through gwrite to appear in the terminal rather
    	// than be written to in some buffer, if we're in a panicking state.
    	// Note that we can't just clear writebuf in the gp.m.dying case
    	// because a panic isn't allowed to have any write barriers.
    	if gp == nil || gp.writebuf == nil || gp.m.dying > 0 {
    		writeErr(b)
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 20 03:27:26 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  2. src/cmd/dist/util.go

    	dieOnce sync.Once // guards close of dying
    	dying   = make(chan struct{})
    )
    
    func bginit() {
    	bghelpers.Add(maxbg)
    	for i := 0; i < maxbg; i++ {
    		go bghelper()
    	}
    }
    
    func bghelper() {
    	defer bghelpers.Done()
    	for {
    		select {
    		case <-dying:
    			return
    		case w := <-bgwork:
    			// Dying takes precedence over doing more work.
    			select {
    			case <-dying:
    				return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 17:50:29 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  3. src/runtime/panic.go

    	gp.m.mallocing++
    
    	// If we're dying because of a bad lock count, set it to a
    	// good lock count so we don't recursively panic below.
    	if gp.m.locks < 0 {
    		gp.m.locks = 1
    	}
    
    	switch gp.m.dying {
    	case 0:
    		// Setting dying >0 has the side-effect of disabling this G's writebuf.
    		gp.m.dying = 1
    		panicking.Add(1)
    		lock(&paniclk)
    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/runtime.go

    //
    //go:nosplit
    func writeErrData(data *byte, n int32) {
    	write(2, unsafe.Pointer(data), n)
    
    	// If crashing, print a copy to the SetCrashOutput fd.
    	gp := getg()
    	if gp != nil && gp.m.dying > 0 ||
    		gp == nil && panicking.Load() > 0 {
    		if fd := crashFD.Load(); fd != ^uintptr(0) {
    			write(fd, unsafe.Pointer(data), n)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/telemetry/internal/crashmonitor/monitor.go

    }
    
    // Child runs the part of the crashmonitor that runs in the child process.
    // It expects its stdin to be connected via a pipe to the parent which has
    // run Parent.
    func Child() {
    	// Wait for parent process's dying gasp.
    	// If the parent dies for any reason this read will return.
    	data, err := io.ReadAll(os.Stdin)
    	if err != nil {
    		log.Fatalf("failed to read from input pipe: %v", err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:57:25 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/TestThread.java

        super(threadName);
        this.lockLikeObject = checkNotNull(lockLikeObject);
        start();
      }
    
      // Thread.stop() is okay because all threads started by a test are dying at the end of the test,
      // so there is no object state put at risk by stopping the threads abruptly. In some cases a test
      // may put a thread into an uninterruptible operation intentionally, so there is no other way to
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  7. src/runtime/mwbbuf.go

    //
    //go:nowritebarrierrec
    //go:nosplit
    func wbBufFlush() {
    	// Note: Every possible return from this function must reset
    	// the buffer's next pointer to prevent buffer overflow.
    
    	if getg().m.dying > 0 {
    		// We're going down. Not much point in write barriers
    		// and this way we can allow write barriers in the
    		// panic path.
    		getg().m.p.ptr().wbBuf.discard()
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

        super(threadName);
        this.lockLikeObject = checkNotNull(lockLikeObject);
        start();
      }
    
      // Thread.stop() is okay because all threads started by a test are dying at the end of the test,
      // so there is no object state put at risk by stopping the threads abruptly. In some cases a test
      // may put a thread into an uninterruptible operation intentionally, so there is no other way to
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  9. src/cmd/go/main.go

    				os.Exit(2)
    			}
    			if !filepath.IsAbs(p) {
    				if cfg.Getenv("GOPATH") == "" {
    					// We inferred $GOPATH from $HOME and did a bad job at it.
    					// Instead of dying, uninfer it.
    					cfg.BuildContext.GOPATH = ""
    				} else {
    					counterErrorsGOPATHEntryRelative.Inc()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:09:11 UTC 2024
    - 10K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/ByteStreams.java

       *       between paging memory and killing other processes - so allocating a gigantic buffer and
       *       then sequentially accessing it could result in other processes dying. This is solvable
       *       via madvise(2), but that obviously doesn't exist in java.
       *   <li>Ordinary copy. Kernel copies bytes into a kernel buffer, from a kernel buffer into a
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Jan 17 18:59:58 UTC 2024
    - 29.7K bytes
    - Viewed (0)
Back to top