Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,862 for allocm (0.2 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/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)
  7. 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)
  8. src/cmd/go/alldocs.go

    // default, and a program named go_$GOOS_$GOARCH_exec can be found
    // on the current search path, 'go run' invokes the binary using that program,
    // for example 'go_js_wasm_exec a.out arguments...'. This allows execution of
    // cross-compiled programs when a simulator or other execution method is
    // available.
    //
    // By default, 'go run' compiles the binary without generating the information
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
  9. src/runtime/mpagecache.go

    		return c.base + i*pageSize, uintptr(scav) * pageSize
    	}
    	return c.allocN(npages)
    }
    
    // allocN is a helper which attempts to allocate npages worth of pages
    // from the cache. It represents the general case for allocating from
    // the page cache.
    //
    // Returns a base address and the amount of scavenged memory in the
    // allocated region in bytes.
    func (c *pageCache) allocN(npages uintptr) (uintptr, uintptr) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 19 14:30:00 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  10. src/runtime/metrics_test.go

    		t.Error("allocs-by-size and frees-by-size counts don't match in length")
    	} else {
    		for i := range objects.alloc.Buckets {
    			ba := objects.alloc.Buckets[i]
    			bf := objects.free.Buckets[i]
    			if ba != bf {
    				t.Errorf("bucket %d is different for alloc and free hists: %f != %f", i, ba, bf)
    			}
    		}
    		if !t.Failed() {
    			var gotAlloc, gotFree uint64
    			want := objects.total
    			for i := range objects.alloc.Counts {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 45K bytes
    - Viewed (0)
Back to top