Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 231 for gopark (0.52 sec)

  1. src/runtime/lock_js.go

    		}
    
    		id := scheduleTimeoutEvent(delay)
    		mp := acquirem()
    		notes[n] = gp
    		notesWithTimeout[n] = noteWithTimeout{gp: gp, deadline: deadline}
    		releasem(mp)
    
    		gopark(nil, nil, waitReasonSleep, traceBlockSleep, 1)
    
    		clearTimeoutEvent(id) // note might have woken early, clear timeout
    
    		mp = acquirem()
    		delete(notes, n)
    		delete(notesWithTimeout, n)
    		releasem(mp)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 21:02:20 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  2. src/runtime/debugcall.go

    	mcall(func(gp *g) {
    		// Get newg.
    		newg := gp.schedlink.ptr()
    		gp.schedlink = 0
    
    		// Park the calling goroutine.
    		trace := traceAcquire()
    		if trace.ok() {
    			// Trace the event before the transition. It may take a
    			// stack trace, but we won't own the stack after the
    			// transition anymore.
    			trace.GoPark(traceBlockDebugCall, 1)
    		}
    		casGToWaiting(gp, _Grunning, waitReasonDebugCall)
    		if trace.ok() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 20:50:21 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. src/cmd/go/testdata/script/work.txt

    ! go work init doesnotexist
    stderr 'go: directory doesnotexist does not exist'
    go env GOWORK
    ! stdout .
    
    go work init ./a ./b
    cmpenv go.work go.work.want
    go env GOWORK
    stdout '^'$WORK'(\\|/)gopath(\\|/)src(\\|/)go.work$'
    
    ! go run  example.com/b
    stderr 'a(\\|/)a.go:4:8: no required module provides package rsc.io/quote; to add it:\n\tcd '$WORK(\\|/)gopath(\\|/)src(\\|/)a'\n\tgo get rsc.io/quote'
    cd a
    go get rsc.io/quote
    cat go.mod
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/work_vendor_modules_txt_conditional.txt

    # runs in mod=vendor
    go work vendor
    cmp vendor/modules.txt want_workspace_modules_txt
    go list -f {{.Dir}} example.com/b
    stdout $GOPATH[\\/]src[\\/]vendor[\\/]example.com[\\/]b
    
    # vendor directory produced for workspace, module mode
    # runs in mod=readonly
    env GOWORK=off
    go list -f {{.Dir}} example.com/b
    stdout $GOPATH[\\/]src[\\/]b
    
    # vendor directory produced for module, module mode
    # runs in mod=vendor
    go mod vendor
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 11 01:59:23 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/work_init_gowork.txt

    # Test that the GOWORK environment variable flag is used by go work init.
    
    ! exists go.work
    go work init
    exists go.work
    
    env GOWORK=$GOPATH/src/foo/foo.work
    ! exists foo/foo.work
    go work init
    exists foo/foo.work
    
    env GOWORK=
    cd foo/bar
    ! go work init
    stderr 'already exists'
    
    # Create directories to make go.work files in.
    -- foo/dummy.txt --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 16 15:58:47 UTC 2022
    - 367 bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/work_disablevendor.txt

    # Base case: ensure the module would default to mod=vendor
    # outside of workspace mode.
    env GOWORK=off
    go list -f '{{.Dir}}' example.com/dep
    stdout $GOPATH[\\/]src[\\/]workspace[\\/]vendor[\\/]example.com[\\/]dep
    
    # Test case: endure the module does not enter mod=vendor outside
    # worspace mode.
    env GOWORK=''
    go list -f '{{.Dir}}' example.com/dep
    stdout $GOPATH[\\/]src[\\/]dep
    
    -- workspace/go.work --
    use .
    replace example.com/dep => ../dep
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 13 20:22:29 UTC 2022
    - 1K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/work_gowork.txt

    env GOWORK=stop.work
    ! go list a # require absolute path
    ! stderr panic
    env GOWORK=doesnotexist
    ! go list a
    ! stderr panic
    
    env GOWORK=$GOPATH/src/stop.work
    go list -n a
    go build -n a
    go test -n a
    
    -- stop.work --
    go 1.18
    
    use ./a
    -- a/a.go --
    package a
    -- a/a_test.go --
    package a
    -- a/go.mod --
    module a
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 16 15:58:47 UTC 2022
    - 314 bytes
    - Viewed (0)
Back to top