- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for GCMemoryLimitNoGCPercent (0.21 sec)
-
src/runtime/testdata/testprog/gc.go
register("GCSys", GCSys) register("GCPhys", GCPhys) register("DeferLiveness", DeferLiveness) register("GCZombie", GCZombie) register("GCMemoryLimit", GCMemoryLimit) register("GCMemoryLimitNoGCPercent", GCMemoryLimitNoGCPercent) } func GCSys() { runtime.GOMAXPROCS(1) memstats := new(runtime.MemStats) runtime.GC() runtime.ReadMemStats(memstats) sys := memstats.Sys
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Oct 02 02:28:27 UTC 2022 - 12.1K bytes - Viewed (0) -
src/runtime/gc_test.go
if testing.Short() { t.Skip("stress test that takes time to run") } if runtime.NumCPU() < 4 { t.Skip("want at least 4 CPUs for this test") } got := runTestProg(t, "testprog", "GCMemoryLimitNoGCPercent") want := "OK\n" if got != want { t.Fatalf("expected %q, but got %q", want, got) } } func TestMyGenericFunc(t *testing.T) { runtime.MyGenericFunc[int]()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 05 22:33:52 UTC 2024 - 17.6K bytes - Viewed (0)