Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for defBlock (0.36 sec)

  1. src/sync/once.go

    // arguments to a function to be invoked by Do:
    //
    //	config.once.Do(func() { config.init(filename) })
    //
    // Because no call to Do returns until the one call to f returns, if f causes
    // Do to be called, it will deadlock.
    //
    // If f panics, Do considers it to have returned; future calls of Do return
    // without calling f.
    func (o *Once) Do(f func()) {
    	// Note: Here is an incorrect implementation of Do:
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. src/runtime/coro.go

    			gnext = next.ptr()
    			break
    		}
    	}
    
    	// Check if we're switching to ourselves. This case is able to break our
    	// thread-lock invariants and an unbuffered channel implementation of
    	// coroswitch would deadlock. It's clear that this case should just not
    	// work.
    	if gnext == gp {
    		throw("coroswitch of a goroutine to itself")
    	}
    
    	// Emit the trace event after getting gnext but before changing curg.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:18 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  3. src/time/tick_test.go

    // Issue 21874
    func TestTickerStopWithDirectInitialization(t *testing.T) {
    	c := make(chan Time)
    	tk := &Ticker{C: c}
    	tk.Stop()
    }
    
    // Test that a bug tearing down a ticker has been fixed. This routine should not deadlock.
    func TestTeardown(t *testing.T) {
    	t.Parallel()
    
    	Delta := 100 * Millisecond
    	if testing.Short() {
    		Delta = 20 * Millisecond
    	}
    	for range 3 {
    		ticker := NewTicker(Delta)
    		<-ticker.C
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:10:37 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go

    		pred.AllowWatchBookmarks,
    		c.groupResource,
    		identifier,
    	)
    
    	// note that c.waitUntilWatchCacheFreshAndForceAllEvents must be called without
    	// the c.watchCache.RLock held otherwise we are at risk of a deadlock
    	// mainly because c.watchCache.processEvent method won't be able to make progress
    	//
    	// moreover even though the c.waitUntilWatchCacheFreshAndForceAllEvents acquires a lock
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  5. internal/grid/grid_test.go

    	cc := make(chan struct{})
    	go func() {
    		select {
    		case <-cc:
    			return
    		case <-c:
    			buf := make([]byte, 1<<20)
    			stacklen := runtime.Stack(buf, true)
    			fmt.Printf("=== Timeout, assuming deadlock ===\n*** goroutine dump...\n%s\n*** end\n", string(buf[:stacklen]))
    			os.Exit(2)
    		}
    	}()
    	return func() {
    		close(cc)
    	}
    }
    
    func assertNoActive(t *testing.T, c *Connection) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  6. src/net/http/server.go

    		w.closeAfterReply = true
    	}
    
    	// We do this by default because there are a number of clients that
    	// send a full request before starting to read the response, and they
    	// can deadlock if we start writing the response with unconsumed body
    	// remaining. See Issue 15527 for some history.
    	//
    	// If full duplex mode has been enabled with ResponseController.EnableFullDuplex,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go

    	if err != nil {
    		t.Fatalf("Couldn't create cacher: %v", err)
    	}
    	defer cacher.Stop()
    
    	concurrency := 1000
    	wg := sync.WaitGroup{}
    	wg.Add(concurrency)
    
    	// Ensure that test doesn't deadlock if cacher already processed everything
    	// and get back into Pending state before some watches get called.
    	ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)
    	defer cancel()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 82.9K bytes
    - Viewed (0)
  8. src/net/http/serve_test.go

    			break For
    		}
    	}
    	ts.Close()
    }
    
    // Tests that a pipelined request does not cause the first request's
    // Handler's CloseNotify channel to fire.
    //
    // Issue 13165 (where it used to deadlock), but behavior changed in Issue 23921.
    func TestCloseNotifierPipelined(t *testing.T) {
    	run(t, testCloseNotifierPipelined, []testMode{http1Mode})
    }
    func testCloseNotifierPipelined(t *testing.T, mode testMode) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  9. RELEASE.md

    Boeddeker, Christopher Yeh, Clayne Robison, Coady, Patrick, crafet, csukuangfj,
    ctiijima, Dan Jarvis, Dan Lazewatsky, Daniel Ingram, Daniel Rasmussen, Daniel
    Salvadori, Dave Airlie, David Norman, Dayananda V, delock, Denis Khalikov, Deven
    Desai, Dheeraj Rajaram Reddy, Diego Caballero, dmitrievanthony, Donovan Ong,
    Drew Szurko, Duncan Dean, Duncan Riach, Dustin Neighly, Dwight J Lyle, Eamon
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 730.3K bytes
    - Viewed (0)
Back to top