Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for newElems (0.44 sec)

  1. src/runtime/mheap.go

    	// undefined and should never be referenced.
    	//
    	// Object n starts at address n*elemsize + (start << pageShift).
    	freeindex uint16
    	// TODO: Look up nelems from sizeclass and remove this field if it
    	// helps performance.
    	nelems uint16 // number of object in the span.
    	// freeIndexForScan is like freeindex, except that freeindex is
    	// used by the allocator whereas freeIndexForScan is used by the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
  2. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollection.java

                return supplier.get();
            }
            List<Object> newItems = value.replace(original, supplier);
            if (newItems == null) {
                return this;
            }
            DefaultConfigurableFileCollection newFiles = new DefaultConfigurableFileCollection(null, resolver, dependencyFactory, patternSetFactory, host);
            newFiles.from(newItems);
            return newFiles;
        }
    
        private void assertMutable() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 16:06:55 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  3. src/runtime/traceallocfree.go

    		// Write out allocated objects if it's a heap span.
    		if s.state.get() != mSpanInUse {
    			continue
    		}
    
    		// Find all allocated objects.
    		abits := s.allocBitsForIndex(0)
    		for i := uintptr(0); i < uintptr(s.nelems); i++ {
    			if abits.index < uintptr(s.freeindex) || abits.isMarked() {
    				x := s.base() + i*s.elemsize
    				trace.HeapObjectExists(x, s.typePointersOfUnchecked(x).typ)
    			}
    			abits.advance()
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:32:51 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store.go

    			if err != nil {
    				return nil, err
    			}
    
    			newItems, err := meta.ExtractList(listObj)
    			if err != nil {
    				return nil, err
    			}
    			items = append(items, newItems...)
    
    			for i := 0; i < len(newItems); i++ {
    				select {
    				case toProcess <- newItems[i]:
    				case <-workersExited:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 19 23:22:44 UTC 2024
    - 60.8K bytes
    - Viewed (0)
  5. pkg/apis/resource/validation/validation.go

    				oldSet := sets.New(oldClaim.Status.ReservedFor...)
    				newSet := sets.New(resourceClaim.Status.ReservedFor...)
    				newItems := newSet.Difference(oldSet)
    				if len(newItems) > 0 {
    					allErrs = append(allErrs, field.Forbidden(fldPath.Child("reservedFor"), "new entries may not be added while `deallocationRequested` or `deletionTimestamp` are set"))
    				}
    			}
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 28.3K bytes
    - Viewed (0)
  6. src/runtime/heapdump.go

    		size := s.elemsize
    		n := (s.npages << _PageShift) / size
    		if n > uintptr(len(freemark)) {
    			throw("freemark array doesn't have enough entries")
    		}
    
    		for freeIndex := uint16(0); freeIndex < s.nelems; freeIndex++ {
    			if s.isFree(uintptr(freeIndex)) {
    				freemark[freeIndex] = true
    			}
    		}
    
    		for j := uintptr(0); j < n; j, p = j+1, p+size {
    			if freemark[j] {
    				freemark[j] = false
    				continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  7. src/runtime/mbitmap.go

    // faster if profiling warrants it.
    func (s *mspan) nextFreeIndex() uint16 {
    	sfreeindex := s.freeindex
    	snelems := s.nelems
    	if sfreeindex == snelems {
    		return sfreeindex
    	}
    	if sfreeindex > snelems {
    		throw("s.freeindex > s.nelems")
    	}
    
    	aCache := s.allocCache
    
    	bitIndex := sys.TrailingZeros64(aCache)
    	for bitIndex == 64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
  8. tensorflow/c/c_api.cc

                                  const tensorflow::TensorShape& shape) {
      static char empty;
      int64_t nelems = 1;
      std::vector<int64_t> dims;
      dims.reserve(shape.dims());
      for (int i = 0; i < shape.dims(); ++i) {
        dims.push_back(shape.dim_size(i));
        nelems *= shape.dim_size(i);
      }
      CHECK_EQ(nelems, 0);
      return TF_NewTensor(
          dtype, reinterpret_cast<const int64_t*>(dims.data()), shape.dims(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/patch.go

    	newS := []interface{}{}
    	for _, elem := range s {
    		if recurse {
    			typedElem := elem.(map[string]interface{})
    			newElem, err := sortMergeListsByNameMap(typedElem, schema)
    			if err != nil {
    				return nil, err
    			}
    
    			newS = append(newS, newElem)
    		} else {
    			newS = append(newS, elem)
    		}
    	}
    
    	// Sort the maps.
    	newS = sortMapsBasedOnField(newS, mergeKey)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 23:34:23 UTC 2023
    - 75.5K bytes
    - Viewed (0)
  10. src/runtime/export_test.go

    	systemstack(func() {
    		lock(&mheap_.lock)
    		mheap_.spanalloc.free(unsafe.Pointer(s))
    		unlock(&mheap_.lock)
    	})
    }
    
    func MSpanCountAlloc(ms *MSpan, bits []byte) int {
    	s := (*mspan)(ms)
    	s.nelems = uint16(len(bits) * 8)
    	s.gcmarkBits = (*gcBits)(unsafe.Pointer(&bits[0]))
    	result := s.countAlloc()
    	s.gcmarkBits = nil
    	return result
    }
    
    const (
    	TimeHistSubBucketBits = timeHistSubBucketBits
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
Back to top