- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for GOGC (0.07 sec)
-
src/cmd/compile/internal/base/base.go
// - except for the first heap goal, heap goal is a function of // observed-live at the previous GC and current GOGC. After the first // GC, adjusting GOGC immediately updates GOGC; before the first GC, // adjusting GOGC does not modify goal (but the change takes effect after // the first GC). // - the before/after first GC behavior is not guaranteed anywhere, it's
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 19:18:34 UTC 2023 - 8K bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/stackswitch.go
// We want to trigger a bounds check on the g0 stack. To do this, we // need to call a splittable function through systemstack(). // SetGCPercent contains such a systemstack call. gogc := debug.SetGCPercent(100) debug.SetGCPercent(gogc) } // Regression test for https://go.dev/issue/62440. It should be possible for C // threads to call into Go from different stacks without crashing due to g0 // stack bounds checks. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 17 15:33:38 UTC 2023 - 1.1K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_cleanup_failnow.txt
[short] skip # This test could fail if the testing package does not wait until # a panicking test does the panic. Turn off multithreading and GC # to increase the probability of such a failure. env GOMAXPROCS=1 env GOGC=off # If the test exits with 'no tests to run', it means the testing package # implementation is incorrect and does not wait until a test panic. # If the test exits with '(?s)panic: die.*panic: die', it means
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 16 14:49:13 UTC 2022 - 1.3K bytes - Viewed (0) -
src/runtime/debug/garbage_test.go
} setGCPercentSink = nil // Adjust GOGC to 50. NextGC should be ~150 MB. SetGCPercent(50) runtime.ReadMemStats(&ms) if want := int64(1.5 * baseline); abs64(want-int64(ms.NextGC)) > thresh { t.Errorf("NextGC = %d MB, want %d±%d MB", ms.NextGC>>20, want>>20, thresh>>20) } // Trigger a GC and get back to 100 MB live with GOGC=100. SetGCPercent(100) runtime.GC() // Raise live to 120 MB.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 19 14:30:00 UTC 2023 - 7.2K bytes - Viewed (0) -
cmd/kube-apiserver/app/server.go
func Run(ctx context.Context, opts options.CompletedOptions) error { // To help debugging, immediately log version klog.Infof("Version: %+v", version.Get()) klog.InfoS("Golang settings", "GOGC", os.Getenv("GOGC"), "GOMAXPROCS", os.Getenv("GOMAXPROCS"), "GOTRACEBACK", os.Getenv("GOTRACEBACK")) config, err := NewConfig(opts) if err != nil { return err } completed, err := config.Complete() if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 17:44:20 UTC 2024 - 10.2K bytes - Viewed (0) -
src/runtime/mgcpacer.go
// For small heaps, this overrides the usual GOGC*live set rule. // // When there is a very small live set but a lot of allocation, simply // collecting when the heap reaches GOGC*live results in many GC // cycles and high total per-GC overhead. This minimum amortizes this // per-GC overhead while keeping the heap reasonably small. // // During initialization this is set to 4MB*GOGC/100. In the case of
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 55.4K bytes - Viewed (0) -
src/crypto/rsa/boring_test.go
t.Skipf("skipping on %s/%s", runtime.GOOS, runtime.GOARCH) } k, err := GenerateKey(rand.Reader, 2048) if err != nil { t.Fatal(err) } // Run test with GOGC=10, to make bug more likely. // Without the KeepAlives, the loop usually dies after // about 30 iterations. defer debug.SetGCPercent(debug.SetGCPercent(10)) for n := 0; n < 200; n++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 15 00:16:30 UTC 2022 - 4.5K bytes - Viewed (0) -
src/cmd/go/testdata/script/env_write.txt
env GOPATH=$root/other go env -u GOPATH ! stderr .+ go env -u GOPATH ! stderr .+ # go env -w rejects unknown or bad variables ! go env -w GOGC=off stderr 'unknown go command variable GOGC' ! go env -w GOEXE=.bat stderr 'GOEXE cannot be modified' ! go env -w GOVERSION=customversion stderr 'GOVERSION cannot be modified' ! go env -w GOENV=/env
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 18:42:31 UTC 2024 - 5.9K bytes - Viewed (0) -
src/runtime/crash_unix_test.go
cmd.Dir = t.TempDir() // put any core file in tempdir cmd.Env = append(cmd.Env, "GOTRACEBACK=crash", // Set GOGC=off. Because of golang.org/issue/10958, the tight // loops in the test program are not preemptible. If GC kicks // in, it may lock up and prevent main from saying it's ready. "GOGC=off", // Set GODEBUG=asyncpreemptoff=1. If a thread is preempted // when it receives SIGQUIT, it won't show the expected
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 20:11:47 UTC 2023 - 9.2K bytes - Viewed (0) -
cmd/kube-scheduler/app/server.go
logger := klog.FromContext(ctx) // To help debugging, immediately log version logger.Info("Starting Kubernetes Scheduler", "version", version.Get()) logger.Info("Golang settings", "GOGC", os.Getenv("GOGC"), "GOMAXPROCS", os.Getenv("GOMAXPROCS"), "GOTRACEBACK", os.Getenv("GOTRACEBACK")) // Configz registration. if cz, err := configz.New("componentconfig"); err == nil { cz.Set(cc.ComponentConfig) } else {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 19:11:24 UTC 2024 - 14.3K bytes - Viewed (0)