Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 68 for sweet (0.06 sec)

  1. src/internal/concurrent/hashtriemap.go

    		e := n.entry()
    		for e != nil {
    			if !yield(e.key, e.value) {
    				return false
    			}
    			e = e.overflow.Load()
    		}
    	}
    	return true
    }
    
    const (
    	// 16 children. This seems to be the sweet spot for
    	// load performance: any smaller and we lose out on
    	// 50% or more in CPU performance. Any larger and the
    	// returns are minuscule (~1% improvement for 32 children).
    	nChildrenLog2 = 4
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 16:01:55 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  2. src/runtime/mcentral.go

    	// swept set. Likewise, allocating an in-use span pushes it
    	// on the swept set.
    	//
    	// Some parts of the sweeper can sweep arbitrary spans, and hence
    	// can't remove them from the unswept set, but will add the span
    	// to the appropriate swept list. As a result, the parts of the
    	// sweeper and mcentral that do consume from the unswept list may
    	// encounter swept spans, and these should be ignored.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  3. src/runtime/mgcsweep.go

    	// no more spans to be swept. In this case, either s has already
    	// been swept, or is about to be acquired for sweeping and swept.
    	sl := sweep.active.begin()
    	if sl.valid {
    		// The caller must be sure that the span is a mSpanInUse span.
    		if s, ok := sl.tryAcquire(s); ok {
    			s.sweep(false)
    			sweep.active.end(sl)
    			return
    		}
    		sweep.active.end(sl)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:52:18 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  4. src/runtime/traceruntime.go

    	mSyscallID int64
    
    	// maySweep indicates the sweep events should be traced.
    	// This is used to defer the sweep start event until a span
    	// has actually been swept.
    	maySweep bool
    
    	// inSweep indicates that at least one sweep event has been traced.
    	inSweep bool
    
    	// swept and reclaimed track the number of bytes swept and reclaimed
    	// by sweeping in the current sweep loop (while maySweep was true).
    	swept, reclaimed uintptr
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  5. src/runtime/mgc.go

    	// to sweep N.
    	//
    	// 2. In sweep N, help with sweep N.
    	//
    	// At this point we can begin a full cycle N+1.
    	//
    	// 3. Trigger cycle N+1 by starting sweep termination N+1.
    	//
    	// 4. Wait for mark termination N+1 to complete.
    	//
    	// 5. Help with sweep N+1 until it's done.
    	//
    	// This all has to be written to deal with the fact that the
    	// GC may move ahead on its own. For example, when we block
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
  6. src/runtime/mcache.go

    	if size+_PageSize < size {
    		throw("out of memory")
    	}
    	npages := size >> _PageShift
    	if size&_PageMask != 0 {
    		npages++
    	}
    
    	// Deduct credit for this span allocation and sweep if
    	// necessary. mHeap_Alloc will also sweep npages, so this only
    	// pays the debt down to npage pages.
    	deductSweepCredit(npages*_PageSize, npages)
    
    	spc := makeSpanClass(0, noscan)
    	s := mheap_.alloc(npages, spc)
    	if s == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10K bytes
    - Viewed (0)
  7. src/internal/trace/parser.go

    	EvSTWStart          = 9  // GC mark termination start [timestamp, kind]
    	EvSTWDone           = 10 // GC mark termination done [timestamp]
    	EvGCSweepStart      = 11 // GC sweep start [timestamp, stack id]
    	EvGCSweepDone       = 12 // GC sweep done [timestamp, swept, reclaimed]
    	EvGoCreate          = 13 // goroutine creation [timestamp, new goroutine id, new stack id, stack id]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:31:04 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. src/runtime/mheap.go

    	// access (since that may free the backing store).
    	allspans []*mspan // all spans out there
    
    	// Proportional sweep
    	//
    	// These parameters represent a linear function from gcController.heapLive
    	// to page sweep count. The proportional sweep system works to
    	// stay in the black by keeping the current page sweep count
    	// above this line at the current gcController.heapLive.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
  9. src/runtime/traceevent.go

    	traceEvGCBegin            // GC start [timestamp, seq, stack ID]
    	traceEvGCEnd              // GC done [timestamp, seq]
    	traceEvGCSweepActive      // GC sweep active [timestamp, P ID]
    	traceEvGCSweepBegin       // GC sweep start [timestamp, stack ID]
    	traceEvGCSweepEnd         // GC sweep done [timestamp, swept bytes, reclaimed bytes]
    	traceEvGCMarkAssistActive // GC mark assist active [timestamp, goroutine ID]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  10. src/runtime/pinner.go

    		// nothing to do, silently ignore it.
    		return false
    	}
    
    	// ensure that the span is swept, b/c sweeping accesses the specials list
    	// w/o locks.
    	mp := acquirem()
    	span.ensureSwept()
    	KeepAlive(ptr) // make sure ptr is still alive after span is swept
    
    	objIndex := span.objIndex(uintptr(ptr))
    
    	lock(&span.speciallock) // guard against concurrent calls of setPinned on same span
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top