Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for ditamap (0.26 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. cmd/postpolicyform.go

    		default:
    			checkHeader[key] = value
    		}
    	}
    	// map to store the metadata
    	metaMap := make(map[string]string)
    	for _, policy := range postPolicyForm.Conditions.Policies {
    		if strings.HasPrefix(policy.Key, "$x-amz-meta-") {
    			formCanonicalName := http.CanonicalHeaderKey(strings.TrimPrefix(policy.Key, "$"))
    			metaMap[formCanonicalName] = policy.Value
    		}
    	}
    	// Check if any extra metadata field is passed as input
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 06 10:52:41 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  6. src/cmd/link/internal/loader/loader.go

    }
    
    // return current length of bitmap in bits.
    func (bm Bitmap) Len() int {
    	return len(bm) * 32
    }
    
    // return the number of bits set.
    func (bm Bitmap) Count() int {
    	s := 0
    	for _, x := range bm {
    		s += bits.OnesCount32(x)
    	}
    	return s
    }
    
    func MakeBitmap(n int) Bitmap {
    	return make(Bitmap, (n+31)/32)
    }
    
    // growBitmap insures that the specified bitmap has enough capacity,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:10 UTC 2024
    - 81.5K bytes
    - Viewed (0)
  7. pkg/registry/core/service/portallocator/storage/storage_test.go

    	}
    
    	// Allocate a port inside the valid port range
    	if err := storage.Allocate(30100); err != nil {
    		t.Fatal(err)
    	}
    
    	// Try to allocate the same port in the local bitmap
    	// The local bitmap stores the offset of the port
    	// offset = port - base (30100 - 30000 = 100)
    	ok, err := backing.Allocate(100)
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 07:15:02 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  8. src/runtime/mheap.go

    	spans [pagesPerArena]*mspan
    
    	// pageInUse is a bitmap that indicates which spans are in
    	// state mSpanInUse. This bitmap is indexed by page number,
    	// but only the bit corresponding to the first page in each
    	// span is used.
    	//
    	// Reads and writes are atomic.
    	pageInUse [pagesPerArena / 8]uint8
    
    	// pageMarks is a bitmap that indicates which spans have any
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
  9. src/internal/abi/type.go

    )
    
    // MaxPtrmaskBytes is the maximum length of a GC ptrmask bitmap,
    // which holds 1-bit entries describing where pointers are in a given type.
    // Above this length, the GC information is recorded as a GC program,
    // which can express repetition compactly. In either form, the
    // information is used by the runtime to initialize the heap bitmap,
    // and for large types (like 128 or more words), they are roughly the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  10. src/runtime/map.go

    		}
    
    		if oldB >= dst.B { // main bucket bits in dst is less than oldB bits in src
    			dstBmap := (*bmap)(add(dst.buckets, (uintptr(i)&bucketMask(dst.B))*uintptr(t.BucketSize)))
    			for dstBmap.overflow(t) != nil {
    				dstBmap = dstBmap.overflow(t)
    			}
    			pos := 0
    			for srcBmap != nil {
    				dstBmap, pos = moveToBmap(t, dst, dstBmap, pos, srcBmap)
    				srcBmap = srcBmap.overflow(t)
    			}
    			continue
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 57.6K bytes
    - Viewed (0)
Back to top