Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for goSpin (0.13 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/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)
  4. 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)
  5. 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)
  6. 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)
  7. src/slices/sort_test.go

    		{[]int{3, 2, 3}, 2, 3},
    		{[]int{0, 2, -9}, -9, 2},
    	}
    	for _, tt := range tests {
    		t.Run(fmt.Sprintf("%v", tt.data), func(t *testing.T) {
    			gotMin := Min(tt.data)
    			if gotMin != tt.wantMin {
    				t.Errorf("Min got %v, want %v", gotMin, tt.wantMin)
    			}
    
    			gotMinFunc := MinFunc(tt.data, intCmp)
    			if gotMinFunc != tt.wantMin {
    				t.Errorf("MinFunc got %v, want %v", gotMinFunc, tt.wantMin)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 19:20:55 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/install_cross_gobin.txt

    cd mycmd
    go build mycmd
    
    # cross-compile install with implicit GOBIN=$GOPATH/bin can make subdirectory
    env GOARCH=386
    [GOARCH:386] env GOARCH=amd64
    env GOOS=linux
    go install mycmd
    exists $GOPATH/bin/linux_$GOARCH/mycmd
    
    # cross-compile install with explicit GOBIN cannot make subdirectory
    env GOBIN=$WORK/bin
    ! go install mycmd
    ! exists $GOBIN/linux_$GOARCH
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 667 bytes
    - Viewed (0)
  9. hack/verify-spelling.sh

    KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
    export KUBE_ROOT
    source "${KUBE_ROOT}/hack/lib/init.sh"
    
    kube::golang::setup_env
    
    # Ensure that we find the binaries we build before anything else.
    export GOBIN="${KUBE_OUTPUT_BIN}"
    PATH="${GOBIN}:${PATH}"
    
    # Install tools we need
    go -C "${KUBE_ROOT}/hack/tools" install github.com/client9/misspell/cmd/misspell
    
    # Spell checking
    # All the skipping files are defined in hack/.spelling_failures
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 22:40:10 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  10. hack/verify-golangci-lint.sh

    KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
    source "${KUBE_ROOT}/hack/lib/init.sh"
    source "${KUBE_ROOT}/hack/lib/util.sh"
    
    kube::golang::setup_env
    export GOBIN="${KUBE_OUTPUT_BIN}"
    
    kube::util::require-jq
    
    invocation=(./hack/verify-golangci-lint.sh "$@")
    golangci=("${GOBIN}/golangci-lint" run)
    golangci_config="${KUBE_ROOT}/hack/golangci.yaml"
    base=
    strict=
    hints=
    githubactions=
    while getopts "ar:sng:c:" o; do
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 22:40:10 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top