Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for minHeap (0.13 sec)

  1. src/runtime/mstats.go

    		// act without synchronizing with a STW. See #64401.
    		lock(&sched.sysmonlock)
    		lock(&trace.lock)
    		if gcController.heapInUse.load() != uint64(consStats.inHeap) {
    			print("runtime: heapInUse=", gcController.heapInUse.load(), "\n")
    			print("runtime: consistent value=", consStats.inHeap, "\n")
    			throw("heapInUse and consistent stats are not equal")
    		}
    		if gcController.heapReleased.load() != uint64(consStats.released) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  2. src/math/big/bits_test.go

    		for x.Bit(badj) != 0 {
    			x.SetBit(x, badj, 0)
    			badj++
    		}
    		x.SetBit(x, badj, 1)
    	}
    
    	// create corresponding float
    	z := new(Float).SetInt(x) // normalized
    	if e := int64(z.exp) + int64(min); MinExp <= e && e <= MaxExp {
    		z.exp = int32(e)
    	} else {
    		// this should never happen for our test cases
    		panic("exponent out of range")
    	}
    	return z
    }
    
    func TestFromBits(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. src/runtime/metrics.go

    			deps: makeStatDepSet(heapStatsDep),
    			compute: func(in *statAggregate, out *metricValue) {
    				out.kind = metricKindUint64
    				out.scalar = uint64(in.heapStats.committed - in.heapStats.inHeap -
    					in.heapStats.inStacks - in.heapStats.inWorkBufs -
    					in.heapStats.inPtrScalarBits)
    			},
    		},
    		"/memory/classes/heap/objects:bytes": {
    			deps: makeStatDepSet(heapStatsDep),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 26K bytes
    - Viewed (0)
  4. src/runtime/cgocall.go

    		it := *(**_type)(p)
    		if it == nil {
    			return
    		}
    		// A type known at compile time is OK since it's
    		// constant. A type not known at compile time will be
    		// in the heap and will not be OK.
    		if inheap(uintptr(unsafe.Pointer(it))) {
    			panic(errorString(msg))
    		}
    		p = *(*unsafe.Pointer)(add(p, goarch.PtrSize))
    		if !cgoIsGoPointer(p) {
    			return
    		}
    		if !top && !isPinned(p) {
    			panic(errorString(msg))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  5. src/math/big/float_test.go

    		z    string
    	}{
    		{"0", 0, "0"},
    		{"+0", 0, "0"},
    		{"-0", 0, "-0"},
    		{"Inf", 1234, "+Inf"},
    		{"+Inf", -1234, "+Inf"},
    		{"-Inf", -1234, "-Inf"},
    		{"0", MinExp, "0"},
    		{"0.25", MinExp, "+0"},    // exponent underflow
    		{"-0.25", MinExp, "-0"},   // exponent underflow
    		{"1", MaxExp, "+Inf"},     // exponent overflow
    		{"2", MaxExp - 1, "+Inf"}, // exponent overflow
    		{"0.75", 1, "1.5"},
    		{"0.5", 11, "1024"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 51.9K bytes
    - Viewed (0)
  6. src/runtime/mheap.go

    	}
    }
    
    // inheap reports whether b is a pointer into a (potentially dead) heap object.
    // It returns false for pointers into mSpanManual spans.
    // Non-preemptible because it is used by write barriers.
    //
    //go:nowritebarrier
    //go:nosplit
    func inheap(b uintptr) bool {
    	return spanOfHeap(b) != nil
    }
    
    // inHeapOrStack is a variant of inheap that returns true for pointers
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
  7. src/runtime/mgcsweep.go

    			// Free large object span to heap.
    
    			// Count the free in the consistent, external stats.
    			//
    			// Do this before freeSpan, which might update heapStats' inHeap
    			// value. If it does so, then metrics that subtract object footprint
    			// from inHeap might overflow. See #67019.
    			stats := memstats.heapStats.acquire()
    			atomic.Xadd64(&stats.largeFreeCount, 1)
    			atomic.Xadd64(&stats.largeFree, int64(size))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:52:18 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  8. src/math/big/float.go

    )
    
    const debugFloat = false // enable for debugging
    
    // A nonzero finite Float represents a multi-precision floating point number
    //
    //	sign × mantissa × 2**exponent
    //
    // with 0.5 <= mantissa < 1.0, and MinExp <= exponent <= MaxExp.
    // A Float may also be zero (+0, -0) or infinite (+Inf, -Inf).
    // All Floats are ordered, and the ordering of two Floats x and y
    // is defined by x.Cmp(y).
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
  9. src/runtime/arena.go

    	// won't change out from under us).
    	stats := memstats.heapStats.acquire()
    	atomic.Xaddint64(&stats.committed, -int64(s.npages*pageSize))
    	atomic.Xaddint64(&stats.inHeap, -int64(s.npages*pageSize))
    	atomic.Xadd64(&stats.largeFreeCount, 1)
    	atomic.Xadd64(&stats.largeFree, int64(s.elemsize))
    	memstats.heapStats.release()
    
    	// This counts as a free, so update heapLive.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:44:56 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  10. src/crypto/tls/conn.go

    	// There might be extra input waiting on the wire. Make a best effort
    	// attempt to fetch it so that it can be used in (*Conn).Read to
    	// "predict" closeNotify alerts.
    	c.rawInput.Grow(needs + bytes.MinRead)
    	_, err := c.rawInput.ReadFrom(&atLeastReader{r, int64(needs)})
    	return err
    }
    
    // sendAlertLocked sends a TLS alert message.
    func (c *Conn) sendAlertLocked(err alert) error {
    	if c.quic != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
Back to top