Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 107 for Atack (0.22 sec)

  1. src/runtime/plugin.go

    	syms = make(map[string]any, len(md.ptab))
    	for _, ptab := range md.ptab {
    		symName := resolveNameOff(unsafe.Pointer(md.types), ptab.name)
    		t := toRType((*_type)(unsafe.Pointer(md.types))).typeOff(ptab.typ) // TODO can this stack of conversions be simpler?
    		var val any
    		valp := (*[2]unsafe.Pointer)(unsafe.Pointer(&val))
    		(*valp)[0] = unsafe.Pointer(t)
    
    		name := symName.Name()
    		if t.Kind_&abi.KindMask == abi.Func {
    			name = "." + name
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. src/runtime/symtabinl.go

    	parentPc  int32 // position of an instruction whose source position is the call site (offset from entry)
    	startLine int32 // line number of start of function (func keyword/TEXT directive)
    }
    
    // An inlineUnwinder iterates over the stack of inlined calls at a PC by
    // decoding the inline table. The last step of iteration is always the frame of
    // the physical function, so there's always at least one frame.
    //
    // This is typically used as:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. src/runtime/export_debug_test.go

    			case "call not at safe point":
    				if returnOnUnsafePoint {
    					// This is for TestDebugCallUnsafePoint.
    					return nil, h.err
    				}
    				fallthrough
    			case "retry _Grunnable", "executing on Go runtime stack", "call from within the Go runtime":
    				// These are transient states. Try to get out of them.
    				if i < 100 {
    					usleep(100)
    					Gosched()
    					continue
    				}
    			}
    			return nil, h.err
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. src/net/http/httptrace/trace.go

    		of := ov.Field(i)
    		if of.IsNil() {
    			continue
    		}
    		if tf.IsNil() {
    			tf.Set(of)
    			continue
    		}
    
    		// Make a copy of tf for tf to call. (Otherwise it
    		// creates a recursive call cycle and stack overflows)
    		tfCopy := reflect.ValueOf(tf.Interface())
    
    		// We need to call both tf and of in some order.
    		newFunc := reflect.MakeFunc(hookType, func(args []reflect.Value) []reflect.Value {
    			tfCopy.Call(args)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  5. src/path/filepath/match.go

    func Glob(pattern string) (matches []string, err error) {
    	return globWithLimit(pattern, 0)
    }
    
    func globWithLimit(pattern string, depth int) (matches []string, err error) {
    	// This limit is used prevent stack exhaustion issues. See CVE-2022-30632.
    	const pathSeparatorsLimit = 10000
    	if depth == pathSeparatorsLimit {
    		return nil, ErrBadPattern
    	}
    
    	// Check pattern is well-formed.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  6. src/path/filepath/match_test.go

    			continue
    		}
    		if len(matches) != 0 {
    			t.Errorf("Glob(%#q) = %#v want []", pattern, matches)
    		}
    	}
    }
    
    func TestCVE202230632(t *testing.T) {
    	// Prior to CVE-2022-30632, this would cause a stack exhaustion given a
    	// large number of separators (more than 4,000,000). There is now a limit
    	// of 10,000.
    	_, err := Glob("/*" + strings.Repeat("/", 10001))
    	if err != ErrBadPattern {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:38:19 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  7. src/sync/pool_test.go

    		}
    		if drain {
    			for i := 0; i < N; i++ {
    				p.Get()
    			}
    		}
    		for i := 0; i < 5; i++ {
    			runtime.GC()
    			time.Sleep(time.Duration(i*100+10) * time.Millisecond)
    			// 1 pointer can remain on stack or elsewhere
    			if fin1 = atomic.LoadUint32(&fin); fin1 >= N-1 {
    				continue loop
    			}
    		}
    		t.Fatalf("only %v out of %v resources are finalized on try %v", fin1, N, try)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. src/runtime/traceevent.go

    	traceEvGoCreateBlocked // goroutine creation (starts blocked) [timestamp, new goroutine ID, new stack ID, stack ID]
    
    	// GoStatus with stack.
    	traceEvGoStatusStack // goroutine status at the start of a generation, with a stack [timestamp, goroutine ID, M ID, status, stack ID]
    
    	// Batch event for an experimental batch with a custom format.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  9. src/net/http/main_test.go

    	buf = buf[:runtime.Stack(buf, true)]
    	for _, g := range strings.Split(string(buf), "\n\n") {
    		_, stack, _ := strings.Cut(g, "\n")
    		stack = strings.TrimSpace(stack)
    		if stack == "" ||
    			strings.Contains(stack, "testing.(*M).before.func1") ||
    			strings.Contains(stack, "os/signal.signal_recv") ||
    			strings.Contains(stack, "created by net.startServer") ||
    			strings.Contains(stack, "created by testing.RunTests") ||
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 22:49:46 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/telemetry/internal/counter/stackcounter.go

    	// by a more efficient mechanism
    	stacks []stack
    }
    
    type stack struct {
    	pcs     []uintptr
    	counter *Counter
    }
    
    func NewStack(name string, depth int) *StackCounter {
    	return &StackCounter{name: name, depth: depth, file: &defaultFile}
    }
    
    // Inc increments a stack counter. It computes the caller's stack and
    // looks up the corresponding counter. It then increments that counter,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:10:54 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top