Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for copylocks (0.26 sec)

  1. src/cmd/go/internal/test/flagdefs.go

    	"atomic":           true,
    	"bool":             true,
    	"bools":            true,
    	"buildtag":         true,
    	"buildtags":        true,
    	"cgocall":          true,
    	"composites":       true,
    	"copylocks":        true,
    	"defers":           true,
    	"directive":        true,
    	"errorsas":         true,
    	"framepointer":     true,
    	"httpresponse":     true,
    	"ifaceassert":      true,
    	"loopclosure":      true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. src/internal/fuzz/pcg.go

    // after the first use.
    //
    // See https://golang.org/issues/8005#issuecomment-190753527
    // for details.
    type noCopy struct{}
    
    // Lock is a no-op used by -copylocks checker from `go vet`.
    func (*noCopy) Lock()   {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:28:14 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. src/cmd/vet/doc.go

    	buildtag         check //go:build and // +build directives
    	cgocall          detect some violations of the cgo pointer passing rules
    	composites       check for unkeyed composite literals
    	copylocks        check for locks erroneously passed by value
    	defers           report common mistakes in defer statements
    	directive        check Go toolchain directives such as //go:debug
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 00:17:30 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  4. src/sync/cond.go

    //
    // See https://golang.org/issues/8005#issuecomment-190753527
    // for details.
    //
    // Note that it must not be embedded, due to the Lock and Unlock methods.
    type noCopy struct{}
    
    // Lock is a no-op used by -copylocks checker from `go vet`.
    func (*noCopy) Lock()   {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/copylock/copylock.go

    sync.WaitGroup, may cause both copies to malfunction. Generally such
    values should be referred to through a pointer.`
    
    var Analyzer = &analysis.Analyzer{
    	Name:             "copylocks",
    	Doc:              Doc,
    	URL:              "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/copylock",
    	Requires:         []*analysis.Analyzer{inspect.Analyzer},
    	RunDespiteErrors: true,
    	Run:              run,
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/metrics/timing_ratio_histogram.go

    }
    
    // NewTestableTimingHistogram adds injection of the clock
    func NewTestableTimingRatioHistogram(nowFunc func() time.Time, opts *TimingRatioHistogramOpts) *TimingRatioHistogram {
    	//nolint:govet // copylocks: assignment copies lock value to ratioedOpts: k8s.io/component-base/metrics.TimingHistogramOpts contains sync.Once contains sync.Mutex
    	ratioedOpts := opts.TimingHistogramOpts
    	ratioedOpts.InitialValue /= opts.InitialDenominator
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 03 06:51:04 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  7. src/sync/atomic/type.go

    //
    // See https://golang.org/issues/8005#issuecomment-190753527
    // for details.
    //
    // Note that it must not be embedded, due to the Lock and Unlock methods.
    type noCopy struct{}
    
    // Lock is a no-op used by -copylocks checker from `go vet`.
    func (*noCopy) Lock()   {}
    func (*noCopy) Unlock() {}
    
    // align64 may be added to structs that must be 64-bit aligned.
    // This struct is recognized by a special case in the compiler
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  8. src/internal/runtime/atomic/types.go

    // after the first use.
    //
    // See https://golang.org/issues/8005#issuecomment-190753527
    // for details.
    type noCopy struct{}
    
    // Lock is a no-op used by -copylocks checker from `go vet`.
    func (*noCopy) Lock()   {}
    func (*noCopy) Unlock() {}
    
    // align64 may be added to structs that must be 64-bit aligned.
    // This struct is recognized by a special case in the compiler
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  9. src/cmd/vet/testdata/copylock/copylock.go

    // Copyright 2018 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package copylock
    
    import "sync"
    
    func BadFunc() {
    	var x *sync.Mutex
    	p := x
    	var y sync.Mutex
    	p = &y
    	*p = *x // ERROR "assignment copies lock value to \*p: sync.Mutex"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 26 21:34:18 UTC 2021
    - 333 bytes
    - Viewed (0)
  10. src/cmd/go/internal/test/test.go

    	// TODO(rsc): Decide which tests are enabled by default.
    	// See golang.org/issue/18085.
    	// "-asmdecl",
    	// "-assign",
    	"-atomic",
    	"-bool",
    	"-buildtags",
    	// "-cgocall",
    	// "-composites",
    	// "-copylocks",
    	"-directive",
    	"-errorsas",
    	// "-httpresponse",
    	"-ifaceassert",
    	// "-lostcancel",
    	// "-methods",
    	"-nilfunc",
    	"-printf",
    	// "-rangeloops",
    	// "-shift",
    	"-slog",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
Back to top