Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for Fault (2.84 sec)

  1. test/recover4.go

    // license that can be found in the LICENSE file.
    
    // Test that if a slice access causes a fault, a deferred func
    // sees the most recent value of the variables it accesses.
    // This is true today; the role of the test is to ensure it stays true.
    //
    // In the test, memcopy is the function that will fault, during dst[i] = src[i].
    // The deferred func recovers from the error and returns, making memcopy
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  2. test/fixedbugs/issue15002.go

    		r := recover()
    		if r == nil {
    			panic("no fault or bounds check failure happened")
    		}
    		s := fmt.Sprintf("%s", r)
    		if s != "runtime error: index out of range [1] with length 1" {
    			panic("bad panic: " + s)
    		}
    	}()
    	return uint16(x[i]) | uint16(x[i+1])<<8
    }
    
    func test32(x []byte) uint32 {
    	defer func() {
    		r := recover()
    		if r == nil {
    			panic("no fault or bounds check failure happened")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  3. pkg/config/analysis/analyzers/deprecation/deprecation.go

    	vs := r.Message.(*v1alpha3.VirtualService)
    
    	for _, httpRoute := range vs.Http {
    		if httpRoute.Fault != nil {
    			if httpRoute.Fault.Delay != nil {
    				// nolint: staticcheck
    				if httpRoute.Fault.Delay.Percent > 0 {
    					ctx.Report(gvk.VirtualService,
    						msg.NewDeprecated(r, replacedMessage("HTTPRoute.fault.delay.percent", "HTTPRoute.fault.delay.percentage")))
    				}
    			}
    		}
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 02 20:50:14 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. src/internal/runtime/atomic/atomic_arm.go

    	}
    	_ = *addr // if nil, fault before taking the lock
    	var r uint64
    	addrLock(addr).lock()
    	r = *addr + uint64(delta)
    	*addr = r
    	addrLock(addr).unlock()
    	return r
    }
    
    //go:nosplit
    func goXchg64(addr *uint64, v uint64) uint64 {
    	if uintptr(unsafe.Pointer(addr))&7 != 0 {
    		*(*int)(nil) = 0 // crash on unaligned uint64
    	}
    	_ = *addr // if nil, fault before taking the lock
    	var r uint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  5. pkg/wellknown/wellknown.go

    const (
    	// Buffer HTTP filter
    	Buffer = "envoy.filters.http.buffer"
    	// CORS HTTP filter
    	CORS = "envoy.filters.http.cors"
    	// Dynamo HTTP filter
    	Dynamo = "envoy.filters.http.dynamo"
    	// Fault HTTP filter
    	Fault = "envoy.filters.http.fault"
    	// GRPCHTTP1Bridge HTTP filter
    	GRPCHTTP1Bridge = "envoy.filters.http.grpc_http1_bridge"
    	// GRPCJSONTranscoder HTTP filter
    	GRPCJSONTranscoder = "envoy.filters.http.grpc_json_transcoder"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Sep 11 15:29:30 UTC 2023
    - 4K bytes
    - Viewed (0)
  6. pkg/config/validation/virtualservice.go

    	if http.Redirect != nil {
    		if len(http.Route) > 0 {
    			errs = appendErrors(errs, errors.New("HTTP route cannot contain both route and redirect"))
    		}
    
    		if http.Fault != nil {
    			errs = appendErrors(errs, errors.New("HTTP route cannot contain both fault and redirect"))
    		}
    
    		if http.Rewrite != nil {
    			errs = appendErrors(errs, errors.New("HTTP route rule cannot contain both rewrite and redirect"))
    		}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:27 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  7. pkg/config/xds/deprecated.go

    		"envoy.filters.http.csrf":             "envoy.csrf",
    		wellknown.Dynamo:                      "envoy.http_dynamo_filter",
    		wellknown.HTTPExternalAuthorization:   "envoy.ext_authz",
    		wellknown.Fault:                       "envoy.fault",
    		wellknown.GRPCHTTP1Bridge:             "envoy.grpc_http1_bridge",
    		wellknown.GRPCJSONTranscoder:          "envoy.grpc_json_transcoder",
    		wellknown.GRPCWeb:                     "envoy.grpc_web",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Sep 11 15:29:30 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  8. src/runtime/race/race_linux_test.go

    	atomic.AddUint64(a, 1)
    	if *a != 2 {
    		t.Fatalf("bad atomic value: %v, want 2", *a)
    	}
    }
    
    func TestAtomicPageBoundary(t *testing.T) {
    	// Test that atomic access near (but not cross) a page boundary
    	// doesn't fault. See issue 60825.
    
    	// Mmap two pages of memory, and make the second page inaccessible,
    	// so we have an address at the end of a page.
    	pagesize := syscall.Getpagesize()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 16 14:09:02 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  9. src/runtime/mem.go

    // 2) Reserved - Owned by the runtime, but accessing it would cause a fault.
    //               Does not count against the process' memory footprint.
    // 3) Prepared - Reserved, intended not to be backed by physical memory (though
    //               an OS may implement this lazily). Can transition efficiently to
    //               Ready. Accessing memory in such a region is undefined (may
    //               fault, may give back unexpected zeroes, etc.).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 19:05:10 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  10. src/runtime/signal_darwin_amd64.go

    			// SIGTRAP on something other than INT 3.
    			c.set_sigcode(_SI_USER)
    		}
    
    	case _SIGSEGV:
    		// x86-64 has 48-bit virtual addresses. The top 16 bits must echo bit 47.
    		// The hardware delivers a different kind of fault for a malformed address
    		// than it does for an attempt to access a valid but unmapped address.
    		// OS X 10.9.2 mishandles the malformed address case, making it look like
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 19 23:07:11 UTC 2022
    - 4K bytes
    - Viewed (0)
Back to top