Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for oldTable (0.07 sec)

  1. guava-tests/benchmark/com/google/common/cache/SegmentBenchmark.java

      @Benchmark
      int time(int reps) {
        int dummy = 0;
        AtomicReferenceArray<ReferenceEntry<Object, Object>> oldTable = segment.table;
        for (int i = 0; i < reps; i++) {
          // TODO(b/145386688): This access should be guarded by 'this.segment', which is not currently
          // held
          segment.expand();
          segment.table = oldTable;
          dummy += segment.count;
        }
        return dummy;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 23 16:59:39 UTC 2019
    - 2.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/collection/ArrayMap.java

            return e;
        }
    
        /**
         * サイズが閾値を超えた場合に容量を確保します。
         */
        protected void ensureCapacity() {
            if (size >= threshold) {
                final Entry<K, V>[] oldTable = listTable;
                final int newCapacity = oldTable.length * 2 + 1;
                @SuppressWarnings("unchecked")
                final Entry<K, V>[] newMapTable = new Entry[newCapacity];
                @SuppressWarnings("unchecked")
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

          Arrays.fill(entries, oldCapacity, newCapacity, UNSET);
        }
        this.entries = entries;
      }
    
      private void resizeTable(int newCapacity) { // newCapacity always a power of two
        int[] oldTable = table;
        int oldCapacity = oldTable.length;
        if (oldCapacity >= MAXIMUM_CAPACITY) {
          threshold = Integer.MAX_VALUE;
          return;
        }
        int newThreshold = 1 + (int) (newCapacity * loadFactor);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 01 22:07:10 UTC 2021
    - 15K bytes
    - Viewed (0)
  4. migrator/migrator.go

    func (m Migrator) RenameTable(oldName, newName interface{}) error {
    	var oldTable, newTable interface{}
    	if v, ok := oldName.(string); ok {
    		oldTable = clause.Table{Name: v}
    	} else {
    		stmt := &gorm.Statement{DB: m.DB}
    		if err := stmt.Parse(oldName); err == nil {
    			oldTable = m.CurrentTable(stmt)
    		} else {
    			return err
    		}
    	}
    
    	if v, ok := newName.(string); ok {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Apr 26 07:15:49 UTC 2024
    - 29K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/CompactHashSet.java

          CompactHashing.tableSet(newTable, targetHash & newMask, targetEntryIndex + 1);
        }
    
        Object oldTable = requireTable();
        int[] entries = requireEntries();
    
        // Loop over current hashtable
        for (int oldTableIndex = 0; oldTableIndex <= oldMask; oldTableIndex++) {
          int oldNext = CompactHashing.tableGet(oldTable, oldTableIndex);
          while (oldNext != UNSET) {
            int entryIndex = oldNext - 1;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 24K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/CompactHashSet.java

          CompactHashing.tableSet(newTable, targetHash & newMask, targetEntryIndex + 1);
        }
    
        Object oldTable = requireTable();
        int[] entries = requireEntries();
    
        // Loop over current hashtable
        for (int oldTableIndex = 0; oldTableIndex <= oldMask; oldTableIndex++) {
          int oldNext = CompactHashing.tableGet(oldTable, oldTableIndex);
          while (oldNext != UNSET) {
            int entryIndex = oldNext - 1;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/MapMakerInternalMap.java

          } finally {
            unlock();
          }
        }
    
        /** Expands the table if possible. */
        @GuardedBy("this")
        void expand() {
          AtomicReferenceArray<E> oldTable = table;
          int oldCapacity = oldTable.length();
          if (oldCapacity >= MAXIMUM_CAPACITY) {
            return;
          }
    
          /*
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

          } finally {
            unlock();
          }
        }
    
        /** Expands the table if possible. */
        @GuardedBy("this")
        void expand() {
          AtomicReferenceArray<E> oldTable = table;
          int oldCapacity = oldTable.length();
          if (oldCapacity >= MAXIMUM_CAPACITY) {
            return;
          }
    
          /*
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/cache/LocalCache.java

            postWriteCleanup();
          }
        }
    
        /** Expands the table if possible. */
        @GuardedBy("this")
        void expand() {
          AtomicReferenceArray<ReferenceEntry<K, V>> oldTable = table;
          int oldCapacity = oldTable.length();
          if (oldCapacity >= MAXIMUM_CAPACITY) {
            return;
          }
    
          /*
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
  10. istioctl/pkg/injector/injector-list.go

    	}
    	newRev := namespace.ObjectMeta.GetLabels()[label.IoIstioRev.Name]
    	oldLabel, ok := namespace.ObjectMeta.GetLabels()[analyzer_util.InjectionLabelName]
    	// If there is no istio-injection=disabled and no istio.io/rev, the namespace isn't injected
    	if newRev == "" && (ok && oldLabel == "disabled" || !ok) {
    		return ""
    	}
    	if newRev != "" {
    		return fmt.Sprintf("MISSING/%s", newRev)
    	}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Oct 18 11:39:52 UTC 2024
    - 10.6K bytes
    - Viewed (0)
Back to top