Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,133 for allocm (0.19 sec)

  1. src/runtime/os_linux.go

    	//
    	// We achieve these through different mechanisms:
    	//
    	// 1. Addition of new Ms to allm in allocm happens before clone of its
    	//    OS thread later in newm.
    	// 2. newm does acquirem to avoid being preempted, ensuring that new Ms
    	//    created in allocm will eventually reach OS thread clone later in
    	//    newm.
    	// 3. We take allocmLock for write here to prevent allocation of new Ms
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  2. src/runtime/proc.go

    func newm(fn func(), pp *p, id int64) {
    	// allocm adds a new M to allm, but they do not start until created by
    	// the OS in newm1 or the template thread.
    	//
    	// doAllThreadsSyscall requires that every M in allm will eventually
    	// start and be signal-able, even with a STW.
    	//
    	// Disable preemption here until we start the thread to ensure that
    	// newm is not preempted between allocm and starting the new thread,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  3. src/runtime/malloc.go

    		if v == nil {
    			return nil, 0
    		}
    
    		// Create new hints for extending this region.
    		hint := (*arenaHint)(h.arenaHintAlloc.alloc())
    		hint.addr, hint.down = uintptr(v), true
    		hint.next, mheap_.arenaHints = mheap_.arenaHints, hint
    		hint = (*arenaHint)(h.arenaHintAlloc.alloc())
    		hint.addr = uintptr(v) + size
    		hint.next, mheap_.arenaHints = mheap_.arenaHints, hint
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testerrors/testdata/malloc.go

    	// causes it to fail.
    	if runtime.GOOS == "dragonfly" {
    		size = C.size_t(0x7fffffff << (32 * (^uintptr(0) >> 63)))
    	}
    
    	p := C.malloc(size)
    	if p == nil {
    		fmt.Println("malloc: C.malloc returned nil")
    		// Just exit normally--the test script expects this
    		// program to crash, so exiting normally indicates failure.
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 766 bytes
    - Viewed (0)
  5. pkg/registry/core/service/storage/alloc.go

    	if len(el) > 0 {
    		return errors.NewInvalid(api.Kind("Service"), service.Name, el)
    	}
    
    	// Special-case: headless + selectorless.  This has to happen before other
    	// checks because it explicitly allows combinations of inputs that would
    	// otherwise be errors.
    	if service.Spec.ClusterIP == api.ClusterIPNone && len(service.Spec.Selector) == 0 {
    		// If IPFamilies was not set by the user, start with the default
    		// family.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:05 UTC 2023
    - 37.3K bytes
    - Viewed (0)
  6. src/testing/allocs.go

    	var memstats runtime.MemStats
    	runtime.ReadMemStats(&memstats)
    	mallocs := 0 - memstats.Mallocs
    
    	// Run the function the specified number of times
    	for i := 0; i < runs; i++ {
    		f()
    	}
    
    	// Read the final statistics
    	runtime.ReadMemStats(&memstats)
    	mallocs += memstats.Mallocs
    
    	// Average the mallocs over the runs (not counting the warm-up).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 02 00:13:47 UTC 2016
    - 1.4K bytes
    - Viewed (0)
  7. test/codegen/alloc.go

    Iskander Sharipov <******@****.***> 1546022404 +0300
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 26 23:08:15 UTC 2019
    - 902 bytes
    - Viewed (0)
  8. src/testing/allocs_test.go

    var global any
    
    var allocsPerRunTests = []struct {
    	name   string
    	fn     func()
    	allocs float64
    }{
    	{"alloc *byte", func() { global = new(*byte) }, 1},
    	{"alloc complex128", func() { global = new(complex128) }, 1},
    	{"alloc float64", func() { global = new(float64) }, 1},
    	{"alloc int32", func() { global = new(int32) }, 1},
    	{"alloc byte", func() { global = new(byte) }, 1},
    }
    
    func TestAllocsPerRun(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 817 bytes
    - Viewed (0)
  9. src/runtime/mcache.go

    var emptymspan mspan
    
    func allocmcache() *mcache {
    	var c *mcache
    	systemstack(func() {
    		lock(&mheap_.lock)
    		c = (*mcache)(mheap_.cachealloc.alloc())
    		c.flushGen.Store(mheap_.sweepgen)
    		unlock(&mheap_.lock)
    	})
    	for i := range c.alloc {
    		c.alloc[i] = &emptymspan
    	}
    	c.nextSample = nextSample()
    	return c
    }
    
    // freemcache releases resources associated with this
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/conc_alloc_test.go

    			}
    		} else if alloc >= item.upperBound {
    			if allocs[idx] != item.upperBound {
    				t.Fatalf("For requiredSum=%v, %s classes=%#+v got solution %v, %v in which item %d should be its upper bound but is not", requiredSum, style, classes, allocs, fairProp, idx)
    			}
    		} else if f64RelDiff(alloc, allocs[idx]) > fpSlack {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 18:17:27 UTC 2022
    - 5.3K bytes
    - Viewed (0)
Back to top