Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 198 for accidentally (0.12 sec)

  1. test/nilptr.go

    func main() {
    	// the test only tests what we intend to test
    	// if dummy starts in the first 256 MB of memory.
    	// otherwise there might not be anything mapped
    	// at the address that might be accidentally
    	// dereferenced below.
    	if uintptr(unsafe.Pointer(&dummy)) > 256<<20 {
    		panic("dummy too far out")
    	}
    
    	shouldPanic(p1)
    	shouldPanic(p2)
    	shouldPanic(p3)
    	shouldPanic(p4)
    	shouldPanic(p5)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  2. test/nilptr_aix.go

    func main() {
    	// the test only tests what we intend to test
    	// if dummy starts in the first 256 MB of memory.
    	// otherwise there might not be anything mapped
    	// at the address that might be accidentally
    	// dereferenced below.
    	if uintptr(unsafe.Pointer(&dummy)) < 1<<32 {
    		panic("dummy not far enough")
    	}
    
    	shouldPanic(p1)
    	shouldPanic(p2)
    	shouldPanic(p3)
    	shouldPanic(p4)
    	shouldPanic(p5)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  3. src/syscall/exec_unix.go

    // the lock across those operations.
    //
    // It is worse to inherit some file descriptors than others.
    // If a non-malicious child accidentally inherits an open ordinary file,
    // that's not a big deal. On the other hand, if a long-lived child
    // accidentally inherits the write end of a pipe, then the reader
    // of that pipe will not see EOF until that child exits, potentially
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  4. src/net/mptcpsock_linux.go

    }
    
    // hasFallenBack reports whether the MPTCP connection has fallen back to "plain"
    // TCP.
    //
    // A connection can fallback to TCP for different reasons, e.g. the other peer
    // doesn't support it, a middle box "accidentally" drops the option, etc.
    //
    // If the MPTCP protocol has not been requested when creating the socket, this
    // method will return true: MPTCP is not being used.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 18:48:34 UTC 2023
    - 4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/ir/tf_arith_ops_folder.h

      auto result_type =
          mlir::cast<ShapedType>(arithmetic_op.getResult().getType());
    
      // We can fold arithmetic operation only of we can prove that we will not
      // accidentally hide a broadcasting error.
      auto is_valid_broadcasting = [](ShapedType operand_ty, ShapedType identity_ty,
                                      ShapedType result_ty) -> bool {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. src/cmd/gofmt/gofmt_test.go

    		if *update {
    			if in != out {
    				if err := os.WriteFile(out, got, 0666); err != nil {
    					t.Error(err)
    				}
    				return
    			}
    			// in == out: don't accidentally destroy input
    			t.Errorf("WARNING: -update did not rewrite input file %s", in)
    		}
    
    		t.Errorf("(gofmt %s) != %s (see %s.gofmt)\n%s", in, out, in,
    			diff.Diff("expected", expected, "got", got))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 19:22:49 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  7. src/go/doc/comment/markdown.go

    	start := 0
    	for i := 0; i < len(s); i++ {
    		switch s[i] {
    		case '\n':
    			// Turn all \n into spaces, for a few reasons:
    			//   - Avoid introducing paragraph breaks accidentally.
    			//   - Avoid the need to reindent after the newline.
    			//   - Avoid problems with Markdown renderers treating
    			//     every mid-paragraph newline as a <br>.
    			out.WriteString(s[start:i])
    			out.WriteByte(' ')
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:48 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  8. tests/integration/tests.mk

    endef
    
    # Ensure that all test files are tagged properly. This ensures that we don't accidentally skip tests
    # and that integration tests are not run as part of the unit test suite.
    check-go-tag:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 20:33:28 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. src/cmd/go/internal/lockedfile/internal/filelock/filelock_test.go

    	other := mustOpen(t, f.Name())
    	defer other.Close()
    
    	// Some kinds of file locks are dropped when a duplicated or forked file
    	// descriptor is unlocked. Double-check that the approach used by os/exec does
    	// not accidentally drop locks.
    	cmd := testenv.Command(t, os.Args[0], "-test.run=^$")
    	if err := cmd.Run(); err != nil {
    		t.Fatalf("exec failed: %v", err)
    	}
    
    	lockOther := mustBlock(t, "Lock", other)
    	unlock(t, f)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 22:37:50 UTC 2023
    - 4K bytes
    - Viewed (0)
  10. src/cmd/internal/pkgpattern/pkgpattern.go

    	// "(anything but that codepoint)*" as the implementation of the ... wildcard.
    	// This is a bit complicated but the obvious alternative,
    	// namely a hand-written search like in most shell glob matchers,
    	// is too easy to make accidentally exponential.
    	// Using package regexp guarantees linear-time matching.
    
    	const vendorChar = "\x00"
    
    	if vendorExclude && strings.Contains(pattern, vendorChar) {
    		return func(name string) bool { return false }
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 16:43:40 UTC 2022
    - 4.8K bytes
    - Viewed (0)
Back to top