Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GCMemoryLimit (0.22 sec)

  1. src/runtime/testdata/testprog/gc.go

    	}
    
    	// GC should detect the zombie objects.
    	runtime.GC()
    	println("failed")
    	runtime.KeepAlive(keep)
    	runtime.KeepAlive(zombies)
    }
    
    func GCMemoryLimit() {
    	gcMemoryLimit(100)
    }
    
    func GCMemoryLimitNoGCPercent() {
    	gcMemoryLimit(-1)
    }
    
    // Test SetMemoryLimit functionality.
    //
    // This test lives here instead of runtime/debug because the entire
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 02 02:28:27 UTC 2022
    - 12.1K bytes
    - Viewed (0)
  2. 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", "GCMemoryLimit")
    	want := "OK\n"
    	if got != want {
    		t.Fatalf("expected %q, but got %q", want, got)
    	}
    }
    
    func TestMemoryLimitNoGCPercent(t *testing.T) {
    	if testing.Short() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 22:33:52 UTC 2024
    - 17.6K bytes
    - Viewed (0)
Back to top