- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 38 for memState (0.28 sec)
-
src/runtime/os_darwin.go
// Find out that stack size for our own stack guard. if pthread_attr_getstacksize(&attr, &stacksize) != 0 { writeErrStr(failthreadcreate) exit(1) } g0.stack.hi = stacksize // for mstart memstats.stacks_sys.add(int64(stacksize)) // Tell the pthread library we won't join with this thread. if pthread_attr_setdetachstate(&attr, _PTHREAD_CREATE_DETACHED) != 0 { writeErrStr(failthreadcreate) exit(1) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:34:30 UTC 2023 - 11.9K bytes - Viewed (0) -
src/runtime/mgclimit.go
if change > 0 && headroom <= uint64(change) { l.overflow += uint64(change) - headroom l.bucket.fill = l.bucket.capacity if !enabled { l.enabled.Store(true) l.lastEnabledCycle.Store(memstats.numgc + 1) } return } // Handle non-limiting cases. if change < 0 && l.bucket.fill <= uint64(-change) { // Bucket emptied. l.bucket.fill = 0 } else { // All other cases.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 22:07:41 UTC 2024 - 17.3K bytes - Viewed (0) -
src/runtime/os_freebsd.go
throw("newosproc") } } // Version of newosproc that doesn't require a valid G. // //go:nosplit func newosproc0(stacksize uintptr, fn unsafe.Pointer) { stack := sysAlloc(stacksize, &memstats.stacks_sys) if stack == nil { writeErrStr(failallocatestack) exit(1) } // This code "knows" it's being called once from the library // initialization code, and so it's using the static m0 for the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:34:30 UTC 2023 - 11.6K bytes - Viewed (0) -
src/cmd/link/internal/ld/main.go
if err != nil { log.Fatalf("%v", err) } AtExit(func() { // Profile all outstanding allocations. runtime.GC() // compilebench parses the memory profile to extract memstats, // which are only written in the legacy pprof format. // See golang.org/issue/18641 and runtime/pprof/pprof.go:writeHeap. const writeLegacyFormat = 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 16:59:50 UTC 2024 - 16.6K bytes - Viewed (0) -
src/net/textproto/reader_test.go
func TestReadMIMEHeaderAllocations(t *testing.T) { var totalAlloc uint64 const count = 200 for i := 0; i < count; i++ { r := reader("A: b\r\n\r\n" + strings.Repeat("\n", 4096)) var m1, m2 runtime.MemStats runtime.ReadMemStats(&m1) _, err := r.ReadMIMEHeader() if err != nil { t.Fatalf("ReadMIMEHeader: %v", err) } runtime.ReadMemStats(&m2) totalAlloc += m2.TotalAlloc - m1.TotalAlloc }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 05 18:31:56 UTC 2024 - 14.7K bytes - Viewed (0) -
src/runtime/stack.go
} if stackDebug >= 1 { print("stackalloc ", n, "\n") } if debug.efence != 0 || stackFromSystem != 0 { n = uint32(alignUp(uintptr(n), physPageSize)) v := sysAlloc(uintptr(n), &memstats.stacks_sys) if v == nil { throw("out of memory (stackalloc)") } return stack{uintptr(v), uintptr(v) + uintptr(n)} } // Small stacks are allocated with a fixed-size free-list allocator.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:31:00 UTC 2024 - 41.1K bytes - Viewed (0) -
api/go1.8.txt
pkg plugin, type Symbol interface {} pkg reflect, func Swapper(interface{}) func(int, int) pkg runtime, func MutexProfile([]BlockProfileRecord) (int, bool) pkg runtime, func SetMutexProfileFraction(int) int pkg runtime, type MemStats struct, NumForcedGC uint32 pkg sort, func Slice(interface{}, func(int, int) bool) pkg sort, func SliceIsSorted(interface{}, func(int, int) bool) bool pkg sort, func SliceStable(interface{}, func(int, int) bool)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 21 05:25:57 UTC 2016 - 16.3K bytes - Viewed (0) -
api/go1.4.txt
# CL 144020043 reflect: add Type.Comparable, Russ Cox <******@****.***> pkg reflect, type Type interface, Comparable() bool # CL 153670043 runtime: add PauseEnd array to MemStats and GCStats, Jens Frederich <******@****.***> pkg runtime, type MemStats struct, PauseEnd [256]uint64 pkg runtime/debug, type GCStats struct, PauseEnd []time.Time # CL 136710045 sync/atomic: add Value, Dmitriy Vyukov <******@****.***>
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 12 03:01:01 UTC 2014 - 34K bytes - Viewed (0) -
src/time/tick_test.go
}) } func TestTimerGC(t *testing.T) { run := func(t *testing.T, what string, f func()) { t.Helper() t.Run(what, func(t *testing.T) { t.Helper() const N = 1e4 var stats runtime.MemStats runtime.GC() runtime.GC() runtime.GC() runtime.ReadMemStats(&stats) before := int64(stats.Mallocs - stats.Frees) for j := 0; j < N; j++ { f() } runtime.GC()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 17:10:37 UTC 2024 - 14.7K bytes - Viewed (0) -
src/math/big/nat_test.go
if prod != r.prod { t.Errorf("#%d: got %s; want %s", i, prod, r.prod) } } } // allocBytes returns the number of bytes allocated by invoking f. func allocBytes(f func()) uint64 { var stats runtime.MemStats runtime.ReadMemStats(&stats) t := stats.TotalAlloc f() runtime.ReadMemStats(&stats) return stats.TotalAlloc - t } // TestMulUnbalanced tests that multiplying numbers of different lengths
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 09 15:29:36 UTC 2024 - 26.2K bytes - Viewed (0)