Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 204 for Bitmap (0.16 sec)

  1. pkg/registry/core/service/allocator/bitmap.go

    }
    
    // NewAllocationMap creates an allocation bitmap using the random scan strategy.
    func NewAllocationMap(max int, rangeSpec string) *AllocationBitmap {
    	return NewAllocationMapWithOffset(max, rangeSpec, 0)
    }
    
    // NewAllocationMapWithOffset creates an allocation bitmap using a random scan strategy that
    // allows to pass an offset that divides the allocation bitmap in two blocks.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 25 20:32:40 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  2. pkg/registry/core/service/ipallocator/bitmap.go

    	base := netutils.BigForIP(cidr.IP)
    	rangeSpec := cidr.String()
    	var family api.IPFamily
    
    	if netutils.IsIPv6CIDR(cidr) {
    		family = api.IPv6Protocol
    		// Limit the max size, since the allocator keeps a bitmap of that size.
    		if max > 65536 {
    			max = 65536
    		}
    	} else {
    		family = api.IPv4Protocol
    		// Don't use the IPv4 network's broadcast address, but don't just
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 25 20:32:40 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  3. src/runtime/mcheckmark.go

    		arena := mheap_.arenas[ai.l1()][ai.l2()]
    		bitmap := arena.checkmarks
    
    		if bitmap == nil {
    			// Allocate bitmap on first use.
    			bitmap = (*checkmarksMap)(persistentalloc(unsafe.Sizeof(*bitmap), 0, &memstats.gcMiscSys))
    			if bitmap == nil {
    				throw("out of memory allocating checkmarks bitmap")
    			}
    			arena.checkmarks = bitmap
    		} else {
    			// Otherwise clear the existing bitmap.
    			clear(bitmap.b[:])
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. test/fixedbugs/issue29362b.go

    // There are 2 arg bitmaps for this function, each with 2 bits.
    // In the first, p and q are both live, so that bitmap is 11.
    // In the second, only p is live, so that bitmap is 10.
    // Bitmaps are byte aligned, so if the first bitmap is interpreted as
    // extending across the entire argument area, we incorrectly concatenate
    // the bitmaps and end up using 110000001. That bad bitmap causes a6
    // to be considered a pointer.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 03 23:37:42 UTC 2019
    - 1.4K bytes
    - Viewed (0)
  5. pkg/registry/core/service/allocator/storage/storage_test.go

    	if _, err := storage.Allocate(2); err != nil {
    		t.Fatal(err)
    	}
    
    	// Release the item in the local bitmap
    	// emulating it's out of sync with the storage
    	err := backing.Release(2)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// It should fail trying to allocate it deespite it's free
    	// in the local bitmap because it's not in the storage
    	ok, err := storage.Allocate(2)
    	if ok || err != nil {
    		t.Fatal(err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 01 20:54:26 UTC 2021
    - 4.8K bytes
    - Viewed (0)
  6. src/runtime/mbitmap.go

    // then s.heapBits() returns a slice containing the bitmap for the whole span.
    // That is, s.heapBits()[0] holds the goarch.PtrSize*8 bits for the first
    // goarch.PtrSize*8 words from "start" through "start+63*ptrSize" in the span.
    // On a related note, small objects are always small enough that their bitmap
    // fits in goarch.PtrSize*8 bits, so writing out bitmap data takes two bitmap
    // writes at most (because object boundaries don't generally lie on
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
  7. src/internal/abi/abi.go

    }
    
    // IntArgRegBitmap is a bitmap large enough to hold one bit per
    // integer argument/return register.
    type IntArgRegBitmap [(IntArgRegs + 7) / 8]uint8
    
    // Set sets the i'th bit of the bitmap to 1.
    func (b *IntArgRegBitmap) Set(i int) {
    	b[i/8] |= uint8(1) << (i % 8)
    }
    
    // Get returns whether the i'th bit of the bitmap is set.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 23 15:51:32 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  8. src/runtime/mpallocbits.go

    // license that can be found in the LICENSE file.
    
    package runtime
    
    import (
    	"runtime/internal/sys"
    )
    
    // pageBits is a bitmap representing one bit per page in a palloc chunk.
    type pageBits [pallocChunkPages / 64]uint64
    
    // get returns the value of the i'th bit in the bitmap.
    func (b *pageBits) get(i uint) uint {
    	return uint((b[i/64] >> (i % 64)) & 1)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 15:13:43 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  9. src/runtime/arena.go

    	// Flush mask to the memory bitmap.
    	idx := h.offset / (ptrBits * goarch.PtrSize)
    	m := uintptr(1)<<h.low - 1
    	bitmap := s.heapBits()
    	bitmap[idx] = bswapIfBigEndian(bswapIfBigEndian(bitmap[idx])&m | data)
    	// Note: no synchronization required for this write because
    	// the allocator has exclusive access to the page, and the bitmap
    	// entries are all for a single page. Also, visibility of these
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:44:56 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  10. test/fixedbugs/issue11286.go

    // Copyright 2015 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.
    
    // Test that pointer bitmaps of types with large scalar tails are
    // correctly repeated when unrolled into the heap bitmap.
    
    package main
    
    import "runtime"
    
    const D = 57
    
    type T struct {
    	a [D]float64
    	b map[string]int
    	c [D]float64
    }
    
    var ts []T
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 23 18:37:17 UTC 2015
    - 600 bytes
    - Viewed (0)
Back to top