Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for goSpin (0.74 sec)

  1. src/cmd/cgo/internal/testsanitizers/testdata/tsan9.go

    }
    */
    import "C"
    
    import (
    	"io"
    	"runtime/pprof"
    	"time"
    )
    
    func goSpin() {
    	start := time.Now()
    	for n := 0; n < 1<<20; n++ {
    		_ = make([]byte, n)
    		if time.Since(start) > 50*time.Millisecond {
    			break
    		}
    	}
    }
    
    func main() {
    	pprof.StartCPUProfile(io.Discard)
    	go C.spin()
    	goSpin()
    	pprof.StopCPUProfile()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/version_buildvcs_fossil.txt

    stdout '^\tbuild\tvcs.modified=false$'
    rm $GOBIN/a$GOEXE
    
    # Building with -buildvcs=false suppresses the info.
    go install -buildvcs=false
    go version -m $GOBIN/a$GOEXE
    ! stdout vcs.revision
    rm $GOBIN/a$GOEXE
    
    # An untracked file is shown as modified, even if it isn't part of the build.
    cp ../../outside/empty.txt .
    go install
    go version -m $GOBIN/a$GOEXE
    stdout '^\tbuild\tvcs=fossil\n'
    stdout '^\tbuild\tvcs.modified=true$'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 03 15:33:59 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/gopath_install.txt

    env GO111MODULE=off
    [short] skip
    
    # Without $GOBIN set, binaries should be installed into the GOPATH bin directory.
    env GOBIN=
    rm $GOPATH/bin/go-cmd-test$GOEXE
    go install go-cmd-test
    exists $GOPATH/bin/go-cmd-test$GOEXE
    
    # With $GOBIN set, binaries should be installed to $GOBIN.
    env GOBIN=$WORK/bin1
    mkdir -p $GOBIN
    go install go-cmd-test
    exists $GOBIN/go-cmd-test$GOEXE
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 15 00:06:54 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/install_cmd_gobin.txt

    # Check that commands in cmd are install to $GOROOT/bin, not $GOBIN.
    # Verifies golang.org/issue/32674.
    env GOBIN=gobin
    mkdir gobin
    go list -f '{{.Target}}' cmd/go
    stdout $GOROOT${/}bin${/}go$GOEXE
    
    # Check that tools are installed to $GOTOOLDIR, not $GOBIN.
    go list -f '{{.Target}}' cmd/compile
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 18 14:52:30 UTC 2022
    - 364 bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/version_buildvcs_bzr.txt

    go install
    go version -m $GOBIN/a$GOEXE
    stdout '^\tbuild\tvcs.modified=true$'
    rm empty.txt
    rm $GOBIN/a$GOEXE
    
    # An edited file is shown as modified, even if it isn't part of the build.
    cp ../../outside/empty.txt ../README
    go install
    go version -m $GOBIN/a$GOEXE
    stdout '^\tbuild\tvcs.modified=true$'
    exec bzr revert ../README
    rm $GOBIN/a$GOEXE
    
    -- $WORK/fakebin/bzr --
    #!/bin/sh
    exit 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 07 03:44:02 UTC 2021
    - 2.7K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/version_buildvcs_git.txt

    rm $GOBIN/a$GOEXE
    
    # Building with -buildvcs=false suppresses the info.
    go install -buildvcs=false
    go version -m $GOBIN/a$GOEXE
    ! stdout vcs.revision
    rm $GOBIN/a$GOEXE
    
    # An untracked file is shown as uncommitted, even if it isn't part of the build.
    cp ../../outside/empty.txt .
    go install
    go version -m $GOBIN/a$GOEXE
    stdout '^\tbuild\tvcs.modified=true$'
    rm empty.txt
    rm $GOBIN/a$GOEXE
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:18 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/build_issue6480.txt

    exec $GOBIN/mtime errors.test$GOEXE
    cp stdout errors1_mod_time.txt
    exec $GOBIN/before start_time.txt errors1_mod_time.txt
    rm start_time.txt errors1_mod_time.txt
    
    # Check errors2.test mtime is updated
    exec $GOBIN/now
    cp stdout start_time.txt
    go test -x -c -o errors2.test errors
    ! stderr '[\\/]link|gccgo' # make sure up-to-date test binary is not relinked
    exec $GOBIN/mtime errors2.test
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/generate_env.txt

    # Install an env command because Windows and plan9 don't have it.
    env GOBIN=$WORK/tmp/bin
    go install env.go
    [GOOS:plan9] env path=$GOBIN${:}$path
    [!GOOS:plan9] env PATH=$GOBIN${:}$PATH
    
    # Test generators have access to the environment
    go generate ./printenv.go
    stdout '^GOARCH='$GOARCH
    stdout '^GOOS='$GOOS
    stdout '^GOFILE='
    stdout '^GOLINE='
    stdout '^GOPACKAGE='
    stdout '^DOLLAR='
    
    -- env.go --
    package main
    
    import (
    	"fmt"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 554 bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/install_relative_gobin_fail.txt

    env GOBIN=.
    ! go install
    stderr 'cannot install, GOBIN must be an absolute path'
    
    -- go.mod --
    module triv
    
    go 1.16
    -- triv.go --
    package main
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 17 13:25:29 UTC 2020
    - 159 bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/version_buildvcs_hg.txt

    exec hg commit -m 'initial commit'
    cd a
    go install
    go version -m $GOBIN/a$GOEXE
    stdout '^\tbuild\tvcs.revision='
    stdout '^\tbuild\tvcs.time='
    stdout '^\tbuild\tvcs.modified=false$'
    rm $GOBIN/a$GOEXE
    
    # Building with -buildvcs=false suppresses the info.
    go install -buildvcs=false
    go version -m $GOBIN/a$GOEXE
    ! stdout hgrevision
    rm $GOBIN/a$GOEXE
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 30 18:09:02 UTC 2021
    - 2.2K bytes
    - Viewed (0)
Back to top