- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 156 for Bitmap (0.11 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
src/reflect/export_test.go
argSize = abid.stackCallArgsSize retOffset = abid.retOffset frametype = toType(ft) // Expand stack pointer bitmap into byte-map. for i := uint32(0); i < abid.stackPtrs.n; i++ { stack = append(stack, abid.stackPtrs.data[i/8]>>(i%8)&1) } // Expand register pointer bitmaps into byte-maps. bool2byte := func(b bool) byte { if b { return 1 } return 0 } for i := 0; i < intArgRegs; i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 15:10:48 UTC 2024 - 3.8K bytes - Viewed (0) -
src/reflect/abi.go
stackCallArgsSize, retOffset, spill uintptr // stackPtrs is a bitmap that indicates whether // each word in the ABI stack space (stack-assigned // args + return values) is a pointer. Used // as the heap pointer bitmap for stack space // passed to reflectcall. stackPtrs *bitVector // inRegPtrs is a bitmap whose i'th bit indicates // whether the i'th integer argument register contains
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 17:08:32 UTC 2024 - 15K bytes - Viewed (0)