Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NetpollWaiters (2.42 sec)

  1. src/runtime/testdata/testprognet/waiters.go

    	"time"
    	_ "unsafe" // for go:linkname
    )
    
    // The bug is that netpollWaiters increases monotonically.
    // This doesn't cause a problem until it overflows.
    // Use linkname to see the value.
    //
    //go:linkname netpollWaiters runtime.netpollWaiters
    var netpollWaiters atomic.Uint32
    
    func init() {
    	register("NetpollWaiters", NetpollWaiters)
    }
    
    func NetpollWaiters() {
    	listener, err := net.Listen("tcp", "127.0.0.1:0")
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. src/runtime/netpoll.go

    }
    
    var (
    	netpollInitLock mutex
    	netpollInited   atomic.Uint32
    
    	pollcache      pollCache
    	netpollWaiters atomic.Uint32
    )
    
    // netpollWaiters is accessed in tests
    //go:linkname netpollWaiters
    
    //go:linkname poll_runtime_pollServerInit internal/poll.runtime_pollServerInit
    func poll_runtime_pollServerInit() {
    	netpollGenericInit()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  3. src/runtime/crash_test.go

    	if !strings.Contains(output, want) {
    		t.Errorf("output does not contain %q:\n%s", want, output)
    	}
    }
    
    func TestNetpollWaiters(t *testing.T) {
    	t.Parallel()
    	output := runTestProg(t, "testprognet", "NetpollWaiters")
    	want := "OK\n"
    	if output != want {
    		t.Fatalf("output is not %q\n%s", want, output)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 27K bytes
    - Viewed (0)
Back to top