Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 73 for cmap (0.04 sec)

  1. src/runtime/export_test.go

    	rw.rw.lock()
    }
    
    func (rw *RWMutex) Unlock() {
    	rw.rw.unlock()
    }
    
    const RuntimeHmapSize = unsafe.Sizeof(hmap{})
    
    func MapBucketsCount(m map[int]int) int {
    	h := *(**hmap)(unsafe.Pointer(&m))
    	return 1 << h.B
    }
    
    func MapBucketsPointerIsNil(m map[int]int) bool {
    	h := *(**hmap)(unsafe.Pointer(&m))
    	return h.buckets == nil
    }
    
    func OverLoadFactor(count int, B uint8) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  2. docs/vi/docs/python-types.md

    Trong Python 3.6 hoặc lớn hơn (bao gồm Python 3.10) bạn có thể sử dụng kiểu `Union` từ `typing` và đặt trong dấu ngoặc vuông những giá trị được chấp nhận.
    
    In Python 3.10 there's also a **new syntax** where you can put the possible types separated by a <abbr title='also called "bitwise or operator", but that meaning is not relevant here'>vertical bar (`|`)</abbr>.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  3. src/runtime/os_openbsd.go

    func osStackAlloc(s *mspan) {
    	osStackRemap(s, _MAP_STACK)
    }
    
    func osStackFree(s *mspan) {
    	// Undo MAP_STACK.
    	osStackRemap(s, 0)
    }
    
    func osStackRemap(s *mspan, flags int32) {
    	a, err := mmap(unsafe.Pointer(s.base()), s.npages*pageSize, _PROT_READ|_PROT_WRITE, _MAP_PRIVATE|_MAP_ANON|_MAP_FIXED|flags, -1, 0)
    	if err != 0 || uintptr(a) != s.base() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. src/syscall/syscall_linux.go

    // mmap varies by architecture; see syscall_linux_*.go.
    //sys	munmap(addr uintptr, length uintptr) (err error)
    
    var mapper = &mmapper{
    	active: make(map[*byte][]byte),
    	mmap:   mmap,
    	munmap: munmap,
    }
    
    func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) {
    	return mapper.Mmap(fd, offset, length, prot, flags)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  5. src/cmd/go/internal/cache/cache.go

    func GetMmap(c Cache, id ActionID) ([]byte, Entry, error) {
    	entry, err := c.Get(id)
    	if err != nil {
    		return nil, entry, err
    	}
    	md, err := mmap.Mmap(c.OutputFile(entry.OutputID))
    	if err != nil {
    		return nil, Entry{}, err
    	}
    	if int64(len(md.Data)) != entry.Size {
    		return nil, Entry{}, &entryNotFoundError{Err: errors.New("file incomplete")}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 14:19:39 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  6. pkg/kubelet/kubelet_node_status_test.go

    		},
    		{
    			name:            "success case - existing node - no change in CMAD",
    			newNode:         newNode(true),
    			createError:     alreadyExists,
    			existingNode:    newNode(true),
    			expectedResult:  true,
    			expectedActions: 2,
    		},
    		{
    			name:            "success case - existing node - CMAD disabled",
    			newNode:         newNode(false),
    			createError:     alreadyExists,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 19:23:19 UTC 2024
    - 115.8K bytes
    - Viewed (0)
  7. src/internal/coverage/encodecounter/encode.go

    	// Notes:
    	// - this version writes everything little-endian, which means
    	//   a call is needed to encode every value (expensive)
    	// - we may want to move to a model in which we just blast out
    	//   all counters, or possibly mmap the file and do the write
    	//   implicitly.
    	ctrb := make([]byte, 4)
    	wrval := func(val uint32) error {
    		var buf []byte
    		var towr int
    		if cfw.cflavor == coverage.CtrRaw {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  8. platforms/core-configuration/declarative-dsl-tooling-builders/src/crossVersionTest/groovy/org/gradle/declarative/dsl/tooling/builders/r89/DeclarativeDslToolingModelsCrossVersionTest.groovy

            file("settings.gradle.dcl") << """
                rootProject.name = "test"
                include(":a")
                include(":b")
            """
    
            file("a/build.gradle.dcl") << " !%@ unpassable crappy crap"
    
            file("b/build.gradle.dcl") << ""
    
            when:
            DeclarativeSchemaModel model = fetchSchemaModel(DeclarativeSchemaModel.class)
    
            then:
            model != null
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 11:32:11 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/walk/builtin.go

    	t := n.Type()
    	hmapType := reflectdata.MapType()
    	hint := n.Len
    
    	// var h *hmap
    	var h ir.Node
    	if n.Esc() == ir.EscNone {
    		// Allocate hmap on stack.
    
    		// var hv hmap
    		// h = &hv
    		h = stackTempAddr(init, hmapType)
    
    		// Allocate one bucket pointed to by hmap.buckets on stack if hint
    		// is not larger than BUCKETSIZE. In case hint is larger than
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go

    	}
    	return i
    }
    
    // Mmap manager, for use by operating system-specific implementations.
    
    type mmapper struct {
    	sync.Mutex
    	active map[*byte][]byte // active mappings; key is last byte in mapping
    	mmap   func(addr, length uintptr, prot, flags, fd int, offset int64) (uintptr, error)
    	munmap func(addr uintptr, length uintptr) error
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 84.4K bytes
    - Viewed (0)
Back to top