Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for Accounting (0.22 sec)

  1. src/runtime/mheap.go

    //
    // If typ.manual() == false, allocSpan allocates a heap span of class spanclass
    // and updates heap accounting. If manual == true, allocSpan allocates a
    // manually-managed span (spanclass is ignored), and the caller is
    // responsible for any accounting related to its use of the span. Either
    // way, allocSpan will atomically add the bytes in the newly allocated
    // span to *sysStat.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
  2. src/runtime/mgcpacer.go

    	if trace.ok() {
    		trace.HeapAlloc(bytesMarked)
    		traceRelease(trace)
    	}
    }
    
    // markWorkerStop must be called whenever a mark worker stops executing.
    //
    // It updates mark work accounting in the controller by a duration of
    // work in nanoseconds and other bookkeeping.
    //
    // Safe to execute at any time.
    func (c *gcControllerState) markWorkerStop(mode gcMarkWorkerMode, duration int64) {
    	switch mode {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 55.4K bytes
    - Viewed (0)
  3. src/runtime/mgcscavenge.go

    				// Only perform sys* operations if we're not in a test.
    				// It's dangerous to do so otherwise.
    				sysUnused(unsafe.Pointer(addr), uintptr(npages)*pageSize)
    
    				// Update global accounting only when not in test, otherwise
    				// the runtime's accounting will be wrong.
    				nbytes := int64(npages * pageSize)
    				gcController.heapReleased.add(nbytes)
    				gcController.heapFree.add(-nbytes)
    
    				stats := memstats.heapStats.acquire()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:48:45 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  4. src/runtime/pprof/pprof_test.go

    	if runtime.GOOS != "linux" {
    		t.Skip("issue 35057 is only confirmed on Linux")
    	}
    
    	// Linux [5.9,5.16) has a kernel bug that can break CPU timers on newly
    	// created threads, breaking our CPU accounting.
    	major, minor := unix.KernelVersion()
    	t.Logf("Running on Linux %d.%d", major, minor)
    	defer func() {
    		if t.Failed() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  5. src/cmd/link/internal/loader/loader.go

    	strictDupMsgs int // number of strict-dup warning/errors, when FlagStrictDups is enabled
    
    	errorReporter *ErrorReporter
    
    	npkgsyms    int // number of package symbols, for accounting
    	nhashedsyms int // number of hashed symbols, for accounting
    }
    
    const (
    	pkgDef = iota
    	hashed64Def
    	hashedDef
    	nonPkgDef
    	nonPkgRef
    )
    
    // objidx
    const (
    	nilObj = iota
    	extObj
    	goObjStart
    )
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:10 UTC 2024
    - 81.5K bytes
    - Viewed (0)
  6. src/time/time.go

    	return int(daysBefore[m] - daysBefore[m-1])
    }
    
    // daysSinceEpoch takes a year and returns the number of days from
    // the absolute epoch to the start of that year.
    // This is basically (year - zeroYear) * 365, but accounting for leap days.
    func daysSinceEpoch(year int) uint64 {
    	y := uint64(int64(year) - absoluteZeroYear)
    
    	// Add in days from 400-year cycles.
    	n := y / 400
    	y -= 400 * n
    	d := daysPer400Years * n
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  7. src/runtime/mgc.go

    			return false
    		}
    		lastgc := int64(atomic.Load64(&memstats.last_gc_nanotime))
    		return lastgc != 0 && t.now-lastgc > forcegcperiod
    	case gcTriggerCycle:
    		// t.n > work.cycles, but accounting for wraparound.
    		return int32(t.n-work.cycles.Load()) > 0
    	}
    	return true
    }
    
    // gcStart starts the GC. It transitions from _GCoff to _GCmark (if
    // debug.gcstoptheworld == 0) or performs all of GC (if
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
  8. src/runtime/malloc.go

    		asanunpoison(x, userSize)
    	}
    
    	// TODO(mknyszek): We should really count the header as part
    	// of gc_sys or something. The code below just pretends it is
    	// internal fragmentation and matches the GC's accounting by
    	// using the whole allocation slot.
    	fullSize := span.elemsize
    	if rate := MemProfileRate; rate > 0 {
    		// Note cache c only valid while m acquired; see #47302
    		//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  9. cmd/xl-storage.go

    				continue
    			}
    
    			if oi.DeleteMarker {
    				sizeS.deleteMarkers++
    			}
    			if oi.VersionID != "" && sz == actualSz {
    				sizeS.versions++
    			}
    			sizeS.totalSize += sz
    
    			// Skip tier accounting if object version is a delete-marker or a free-version
    			// tracking deleted transitioned objects
    			switch {
    			case oi.DeleteMarker, oi.TransitionedObject.FreeVersion:
    				continue
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/services/BuildServiceIntegrationTest.groovy

                            println("Skipping counting as service not available")
                        }
                    }
                }
                task missingOptionalService(type: Consumer) {}
            """
            enableStableConfigurationCache()
    
            when:
            succeeds 'missingOptionalService'
    
            then:
            outputContains("Skipping counting as service not available")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 19:15:46 UTC 2024
    - 61K bytes
    - Viewed (0)
Back to top