Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 365 for gopark (0.21 sec)

  1. src/runtime/netpoll.go

    // pollDesc contains 2 binary semaphores, rg and wg, to park reader and writer
    // goroutines respectively. The semaphore can be in the following states:
    //
    //	pdReady - io readiness notification is pending;
    //	          a goroutine consumes the notification by changing the state to pdNil.
    //	pdWait - a goroutine prepares to park on the semaphore, but not yet parked;
    //	         the goroutine commits to park by changing the state to G pointer,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  2. src/runtime/runtime2.go

    //
    // goarm should be an internal detail,
    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    //   - github.com/creativeprojects/go-selfupdate
    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname goarm
    var (
    	goarm       uint8
    	goarmsoftfp uint8
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
  3. src/runtime/pprof/pprof_test.go

    		{"block", []string{"runtime.chanrecv1", "runtime/pprof.blockChanDeep"}},
    		{"mutex", []string{"sync.(*Mutex).Unlock", "runtime/pprof.blockMutexDeep"}},
    		{"goroutine", []string{"runtime.gopark", "runtime.chanrecv", "runtime.chanrecv1", "runtime/pprof.goroutineDeep"}},
    	}
    
    	for _, test := range tests {
    		t.Run(test.profiler, func(t *testing.T) {
    			var buf bytes.Buffer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  4. src/runtime/trace.go

    // returned data before calling ReadTrace again.
    // ReadTrace must be called from one goroutine at a time.
    func ReadTrace() []byte {
    top:
    	var buf []byte
    	var park bool
    	systemstack(func() {
    		buf, park = readTrace0()
    	})
    	if park {
    		gopark(func(gp *g, _ unsafe.Pointer) bool {
    			if !trace.reader.CompareAndSwapNoWB(nil, gp) {
    				// We're racing with another reader.
    				// Wake up and handle this case.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  5. src/runtime/stack.go

    	// safe-point because we don't have precise pointer maps for
    	// all frames.
    	if gp.asyncSafePoint {
    		return false
    	}
    	// We also can't *shrink* the stack in the window between the
    	// goroutine calling gopark to park on a channel and
    	// gp.activeStackChans being set.
    	if gp.parkingOnChan.Load() {
    		return false
    	}
    	// We also can't copy the stack while tracing is enabled, and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  6. src/runtime/time.go

    	if t == nil {
    		t = new(timer)
    		t.init(goroutineReady, gp)
    		gp.timer = t
    	}
    	when := nanotime() + ns
    	if when < 0 { // check for overflow.
    		when = maxWhen
    	}
    	gp.sleepWhen = when
    	gopark(resetForSleep, nil, waitReasonSleep, traceBlockSleep, 1)
    }
    
    // resetForSleep is called after the goroutine is parked for timeSleep.
    // We can't call timer.reset in timeSleep itself because if this is a short
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 14:36:24 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  7. src/runtime/mgcscavenge.go

    		}
    	}
    	if s.gomaxprocs == nil {
    		s.gomaxprocs = func() int32 {
    			return gomaxprocs
    		}
    	}
    }
    
    // park parks the scavenger goroutine.
    func (s *scavengerState) park() {
    	lock(&s.lock)
    	if getg() != s.g {
    		throw("tried to park scavenger from another goroutine")
    	}
    	s.parked = true
    	goparkunlock(&s.lock, waitReasonGCScavengeWait, traceBlockSystemGoroutine, 2)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:48:45 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  8. src/internal/cfg/cfg.go

    	CGO_LDFLAGS_DISALLOW
    	CXX
    	FC
    	GCCGO
    	GO111MODULE
    	GO386
    	GOAMD64
    	GOARCH
    	GOARM
    	GOARM64
    	GOBIN
    	GOCACHE
    	GOCACHEPROG
    	GOENV
    	GOEXE
    	GOEXPERIMENT
    	GOFLAGS
    	GOGCCFLAGS
    	GOHOSTARCH
    	GOHOSTOS
    	GOINSECURE
    	GOMIPS
    	GOMIPS64
    	GOMODCACHE
    	GONOPROXY
    	GONOSUMDB
    	GOOS
    	GOPATH
    	GOPPC64
    	GOPRIVATE
    	GOPROXY
    	GORISCV64
    	GOROOT
    	GOSUMDB
    	GOTMPDIR
    	GOTOOLCHAIN
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 01:33:19 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/work_env.txt

    go env GOWORK
    stdout '^'$GOPATH'[\\/]src[\\/]go.work$'
    go env
    stdout '^(set )?GOWORK=''?'$GOPATH'[\\/]src[\\/]go.work''?$'
    
    cd ..
    go env GOWORK
    ! stdout .
    go env
    stdout 'GOWORK=("")?'
    
    cd src
    go env GOWORK
    stdout 'go.work'
    
    env GOWORK='off'
    go env GOWORK
    stdout 'off'
    
    ! go env -w GOWORK=off
    stderr '^go: GOWORK cannot be modified$'
    
    -- go.work --
    go 1.18
    
    use a
    -- a/go.mod --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 05 14:28:38 UTC 2023
    - 399 bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/env_gomod_issue61455.txt

    # go env GOMOD should not trigger a toolchain download
    cd $GOPATH/mod
    go env GOMOD
    stdout mod[/\\]go.mod
    ! stderr 'go: toolchain go1.500 invoked to provide go1.700'
    
    # go env GOWORK should not trigger a toolchain download
    cd $GOPATH/work
    go env GOWORK
    stdout work[/\\]go.work
    ! stderr 'go: toolchain go1.500 invoked to provide go1.700'
    
    -- $GOPATH/mod/go.mod --
    module example.com
    
    go 1.700
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 16:05:39 UTC 2024
    - 510 bytes
    - Viewed (0)
Back to top