Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 207 for Fault (0.14 sec)

  1. src/runtime/debug/panic_test.go

    		if r == nil {
    			t.Fatalf("write did not fault")
    		}
    		type addressable interface {
    			Addr() uintptr
    		}
    		a, ok := r.(addressable)
    		if !ok {
    			t.Fatalf("fault does not contain address")
    		}
    		want := uintptr(unsafe.Pointer(&m[lowBits]))
    		got := a.Addr()
    		if got != want {
    			t.Fatalf("fault address %x, want %x", got, want)
    		}
    	}()
    	m[lowBits] = 1 // will fault
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. src/runtime/arena.go

    	// We can only set user arenas to fault if we're in the _GCoff phase.
    	if gcphase == _GCoff {
    		lock(&userArenaState.lock)
    		faultList := userArenaState.fault
    		userArenaState.fault = nil
    		unlock(&userArenaState.lock)
    
    		s.setUserArenaChunkToFault()
    		for _, lc := range faultList {
    			lc.mspan.setUserArenaChunkToFault()
    		}
    
    		// Until the chunks are set to fault, keep them alive via the fault list.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:44:56 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  6. 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)
  7. src/cmd/compile/internal/ssa/nilcheck.go

    				unnecessary.clear()
    			}
    
    			// Find any pointers that this op is guaranteed to fault on if nil.
    			var ptrstore [2]*Value
    			ptrs := ptrstore[:0]
    			if opcodeTable[v.Op].faultOnNilArg0 && (faultOnLoad || v.Type.IsMemory()) {
    				// On AIX, only writing will fault.
    				ptrs = append(ptrs, v.Args[0])
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:45:54 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  8. pilot/pkg/networking/core/route/route_internal_test.go

    	xdsfault "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/common/fault/v3"
    	cors "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/cors/v3"
    	xdshttpfault "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/fault/v3"
    	matcher "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3"
    	xdstype "github.com/envoyproxy/go-control-plane/envoy/type/v3"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat May 11 02:47:57 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  9. 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)
  10. src/runtime/signal_windows.go

    			// We could check that the arena chunk is explicitly set to fault,
    			// but the fact that we faulted on accessing it is enough to prove
    			// that it is.
    			print("accessed data from freed user arena ", hex(gp.sigcode1), "\n")
    		} else {
    			print("unexpected fault address ", hex(gp.sigcode1), "\n")
    		}
    		throw("fault")
    	case _EXCEPTION_INT_DIVIDE_BY_ZERO:
    		panicdivide()
    	case _EXCEPTION_INT_OVERFLOW:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 20:32:29 UTC 2023
    - 14.5K bytes
    - Viewed (0)
Back to top