Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for requireOvercommit (0.28 sec)

  1. src/cmd/cgo/internal/testsanitizers/tsan_test.go

    	// The msan tests require support for the -msan option.
    	if !compilerRequiredTsanVersion(goos, goarch) {
    		t.Skipf("skipping on %s/%s; compiler version for -tsan option is too old.", goos, goarch)
    	}
    
    	t.Parallel()
    	requireOvercommit(t)
    	config := configure("thread")
    	config.skipIfCSanitizerBroken(t)
    
    	mustRun(t, config.goCmd("build", "std"))
    
    	cases := []struct {
    		src          string
    		needsRuntime bool
    	}{
    		{src: "tsan.go"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 21:14:49 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testsanitizers/cc_test.go

    	"strconv"
    	"strings"
    	"sync"
    	"syscall"
    	"testing"
    	"time"
    	"unicode"
    )
    
    var overcommit struct {
    	sync.Once
    	value int
    	err   error
    }
    
    // requireOvercommit skips t if the kernel does not allow overcommit.
    func requireOvercommit(t *testing.T) {
    	t.Helper()
    
    	overcommit.Once.Do(func() {
    		var out []byte
    		out, overcommit.err = os.ReadFile("/proc/sys/vm/overcommit_memory")
    		if overcommit.err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 09 20:00:56 UTC 2024
    - 14.4K bytes
    - Viewed (0)
Back to top