Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 107 for nextGen (0.23 sec)

  1. src/runtime/tracestatus.go

    	}
    	r.readyNextGen(gen)
    	return true
    }
    
    // readyNextGen readies r for the generation following gen.
    func (r *traceSchedResourceState) readyNextGen(gen uintptr) {
    	nextGen := traceNextGen(gen)
    	r.seq[nextGen%2] = 0
    	r.statusTraced[nextGen%3].Store(0)
    }
    
    // statusWasTraced returns true if the sched resource's status was already acquired for tracing.
    func (r *traceSchedResourceState) statusWasTraced(gen uintptr) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. src/runtime/mgcscavenge_test.go

    			if wantOffset != gotOffset {
    				t.Errorf("find: wanted page offset %d, got %d", wantOffset, gotOffset)
    			}
    			if t.Failed() {
    				t.FailNow()
    			}
    			si.SetEmpty(got)
    		}
    		nextGen = func() {
    			t.Helper()
    
    			si.NextGen()
    		}
    		return
    	}
    
    	// Each of these test cases calls mark and then find once.
    	type testCase struct {
    		name string
    		mark func(markFunc)
    		find func(findFunc)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  3. src/runtime/mgcscavenge.go

    		s.searchAddrForce.StoreMarked(addr)
    	}
    }
    
    // nextGen moves the scavenger forward one generation. Must be called
    // once per GC cycle, but may be called more often to force more memory
    // to be released.
    //
    // nextGen may only run concurrently with find.
    func (s *scavengeIndex) nextGen() {
    	s.gen++
    	searchAddr, _ := s.searchAddrBg.Load()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:48:45 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  4. src/runtime/export_test.go

    		addr, marked := a.Load()
    		if marked {
    			a.StoreUnmark(addr, addr)
    		}
    		a.Clear()
    	}
    	s.i.freeHWM = minOffAddr
    }
    
    func (s *ScavengeIndex) NextGen() {
    	s.i.nextGen()
    }
    
    func (s *ScavengeIndex) SetEmpty(ci ChunkIdx) {
    	s.i.setEmpty(chunkIdx(ci))
    }
    
    func CheckPackScavChunkData(gen uint32, inUse, lastInUse uint16, flags uint8) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  5. src/runtime/mgc.go

    	unlock(&work.sweepWaiters.lock)
    
    	// Increment the scavenge generation now.
    	//
    	// This moment represents peak heap in use because we're
    	// about to start sweeping.
    	mheap_.pages.scav.index.nextGen()
    
    	// Release the CPU limiter.
    	gcCPULimiter.finishGCTransition(now)
    
    	// Finish the current heap profiling cycle and start a new
    	// heap profiling cycle. We do this before starting the world
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
  6. platforms/software/build-init/src/main/java/org/gradle/buildinit/plugins/internal/VersionCatalogDependencyRegistry.java

        }
    
        private static String findFreeAlias(Set<String> reservedKeys, String key) {
            String nextKey = key;
            int collisionCount = 0;
            while (reservedKeys.contains(nextKey)) {
                collisionCount += 1;
                nextKey = key + "-x" + collisionCount;
            }
            return nextKey;
        }
    
        @NonNullApi
        public static class VersionEntry {
            String alias;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 18 14:16:33 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/continue_test.go

    import (
    	"encoding/base64"
    	"encoding/json"
    	"errors"
    	"testing"
    )
    
    func encodeContinueOrDie(apiVersion string, resourceVersion int64, nextKey string) string {
    	out, err := json.Marshal(&continueToken{APIVersion: apiVersion, ResourceVersion: resourceVersion, StartKey: nextKey})
    	if err != nil {
    		panic(err)
    	}
    	return base64.RawURLEncoding.EncodeToString(out)
    }
    
    func Test_decodeContinue(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 31 17:30:02 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/continue.go

    func EncodeContinue(key, keyPrefix string, resourceVersion int64) (string, error) {
    	nextKey := strings.TrimPrefix(key, keyPrefix)
    	if nextKey == key {
    		return "", fmt.Errorf("unable to encode next field: the key and key prefix do not match")
    	}
    	out, err := json.Marshal(&continueToken{APIVersion: "meta.k8s.io/v1", ResourceVersion: resourceVersion, StartKey: nextKey})
    	if err != nil {
    		return "", err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 31 17:30:02 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/api_object_versioner.go

    	}
    	accessor.SetResourceVersion(versionString)
    	return nil
    }
    
    // UpdateList implements Versioner
    func (a APIObjectVersioner) UpdateList(obj runtime.Object, resourceVersion uint64, nextKey string, count *int64) error {
    	if resourceVersion == 0 {
    		return fmt.Errorf("illegal resource version from storage: %d", resourceVersion)
    	}
    	listAccessor, err := meta.ListAccessor(obj)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 11 15:19:32 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/filters/goaway_test.go

    		name         string
    		chance       float64
    		nextFn       func(chance float64) func() float64
    		expectGOAWAY bool
    	}{
    		{
    			name:   "always not GOAWAY",
    			chance: 0,
    			nextFn: func(chance float64) func() float64 {
    				return rand.Float64
    			},
    			expectGOAWAY: false,
    		},
    		{
    			name:   "always GOAWAY",
    			chance: 1,
    			nextFn: func(chance float64) func() float64 {
    				return rand.Float64
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 17 12:58:54 UTC 2021
    - 13.9K bytes
    - Viewed (0)
Back to top