Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 275 for Implementation (0.43 sec)

  1. src/testing/newcover.go

    // Copyright 2022 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.
    
    // Support for test coverage with redesigned coverage implementation.
    
    package testing
    
    import (
    	"fmt"
    	"internal/goexperiment"
    	"os"
    	_ "unsafe" // for linkname
    )
    
    // cover2 variable stores the current coverage mode and a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:58:07 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. src/runtime/mem_linux.go

    	if uintptr(v)&(physPageSize-1) != 0 {
    		// The Linux implementation requires that the address
    		// addr be page-aligned, and allows length to be zero.
    		throw("unaligned sysNoHugePageOS")
    	}
    	madvise(v, n, _MADV_NOHUGEPAGE)
    }
    
    func sysHugePageCollapseOS(v unsafe.Pointer, n uintptr) {
    	if uintptr(v)&(physPageSize-1) != 0 {
    		// The Linux implementation requires that the address
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. src/hash/hash.go

    package hash
    
    import "io"
    
    // Hash is the common interface implemented by all hash functions.
    //
    // Hash implementations in the standard library (e.g. [hash/crc32] and
    // [crypto/sha256]) implement the [encoding.BinaryMarshaler] and
    // [encoding.BinaryUnmarshaler] interfaces. Marshaling a hash implementation
    // allows its internal state to be saved and used for additional processing
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 19:15:34 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  4. src/sync/map_reference_test.go

    	Range(func(key, value any) (shouldContinue bool))
    	Clear()
    }
    
    var (
    	_ mapInterface = &RWMutexMap{}
    	_ mapInterface = &DeepCopyMap{}
    )
    
    // RWMutexMap is an implementation of mapInterface using a sync.RWMutex.
    type RWMutexMap struct {
    	mu    sync.RWMutex
    	dirty map[any]any
    }
    
    func (m *RWMutexMap) Load(key any) (value any, ok bool) {
    	m.mu.RLock()
    	value, ok = m.dirty[key]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 01 15:34:22 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. internal/bucket/bandwidth/reader.go

    type BucketOptions struct {
    	Name           string
    	ReplicationARN string // This is optional, and not mandatory.
    }
    
    // MonitorReaderOptions provides configurable options for monitor reader implementation.
    type MonitorReaderOptions struct {
    	BucketOptions
    	HeaderSize int
    }
    
    // Read implements a throttled read
    func (r *MonitoredReader) Read(buf []byte) (n int, err error) {
    	if r.throttle == nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Sep 06 03:21:59 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  6. cmd/logging.go

    type KMSLogger struct{}
    
    // LogOnceIf is the implementation of LogOnceIf, accessible using the Logger interface
    func (l KMSLogger) LogOnceIf(ctx context.Context, err error, id string, errKind ...interface{}) {
    	logger.LogOnceIf(ctx, "kms", err, id, errKind...)
    }
    
    // LogIf is the implementation of LogIf, accessible using the Logger interface
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  7. src/internal/trace/testdata/testprog/futile-wakeup.go

    // it makes sure that a block on a channel send that unblocks briefly only to
    // immediately go back to sleep (in such a way that doesn't reveal any useful
    // information, and is purely an artifact of the runtime implementation) doesn't
    // make it into the trace.
    
    //go:build ignore
    
    package main
    
    import (
    	"context"
    	"log"
    	"os"
    	"runtime"
    	"runtime/trace"
    	"sync"
    )
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/dra/state/checkpoint.go

    	Version  string             `json:"version"`
    	Entries  ClaimInfoStateList `json:"entries,omitempty"`
    	Checksum checksum.Checksum  `json:"checksum"`
    }
    
    // DraManagerCheckpoint struct is an old implementation of the DraManagerCheckpoint
    type DRAManagerCheckpointWithoutResourceHandles struct {
    	Version  string                                   `json:"version"`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 15:23:10 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  9. src/runtime/mwbbuf.go

    	return p
    }
    
    // wbBufFlush flushes the current P's write barrier buffer to the GC
    // workbufs.
    //
    // This must not have write barriers because it is part of the write
    // barrier implementation.
    //
    // This and everything it calls must be nosplit because 1) the stack
    // contains untyped slots from gcWriteBarrier and 2) there must not be
    // a GC safe point between the write barrier test in the caller and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  10. pkg/kube/krt/internal.go

    	ak, ok := any(a).(Equaler[O])
    	if ok {
    		return ak.Equals(b)
    	}
    	pk, ok := any(&a).(Equaler[O])
    	if ok {
    		return pk.Equals(b)
    	}
    	// Future improvement: add a default Kubernetes object implementation
    	// ResourceVersion is tempting but probably not safe. If we are comparing objects from the API server its fine,
    	// but often we will be operating on types generated by the controller itself.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top