Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for emptyOne (0.19 sec)

  1. src/runtime/map_fast64.go

    			if t.Elem.Pointers() {
    				memclrHasPointers(e, t.Elem.Size_)
    			} else {
    				memclrNoHeapPointers(e, t.Elem.Size_)
    			}
    			b.tophash[i] = emptyOne
    			// If the bucket now ends in a bunch of emptyOne states,
    			// change those to emptyRest states.
    			if i == abi.MapBucketCount-1 {
    				if b.overflow(t) != nil && b.overflow(t).tophash[0] != emptyRest {
    					goto notLast
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  2. src/runtime/map_fast32.go

    			if t.Elem.Pointers() {
    				memclrHasPointers(e, t.Elem.Size_)
    			} else {
    				memclrNoHeapPointers(e, t.Elem.Size_)
    			}
    			b.tophash[i] = emptyOne
    			// If the bucket now ends in a bunch of emptyOne states,
    			// change those to emptyRest states.
    			if i == abi.MapBucketCount-1 {
    				if b.overflow(t) != nil && b.overflow(t).tophash[0] != emptyRest {
    					goto notLast
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  3. src/runtime/map_faststr.go

    			if t.Elem.Pointers() {
    				memclrHasPointers(e, t.Elem.Size_)
    			} else {
    				memclrNoHeapPointers(e, t.Elem.Size_)
    			}
    			b.tophash[i] = emptyOne
    			// If the bucket now ends in a bunch of emptyOne states,
    			// change those to emptyRest states.
    			if i == abi.MapBucketCount-1 {
    				if b.overflow(t) != nil && b.overflow(t).tophash[0] != emptyRest {
    					goto notLast
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  4. src/runtime/export_test.go

    	})
    }
    
    func stackOverflow(x *byte) {
    	var buf [256]byte
    	stackOverflow(&buf[0])
    }
    
    func MapTombstoneCheck(m map[int]int) {
    	// Make sure emptyOne and emptyRest are distributed correctly.
    	// We should have a series of filled and emptyOne cells, followed by
    	// a series of emptyRest cells.
    	h := *(**hmap)(unsafe.Pointer(&m))
    	i := any(m)
    	t := *(**maptype)(unsafe.Pointer(&i))
    
    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/chan.go

    func timerchandrain(c *hchan) bool {
    	// Note: Cannot use empty(c) because we are called
    	// while holding c.timer.sendLock, and empty(c) will
    	// call c.timer.maybeRunChan, which will deadlock.
    	// We are emptying the channel, so we only care about
    	// the count, not about potentially filling it up.
    	if atomic.Loaduint(&c.qcount) == 0 {
    		return false
    	}
    	lock(&c.lock)
    	any := false
    	for c.qcount > 0 {
    		any = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 25.9K bytes
    - Viewed (0)
Back to top