Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for backtracker (0.18 sec)

  1. src/regexp/backtrack.go

    }
    
    // maxBitStateLen returns the maximum length of a string to search with
    // the backtracker using prog.
    func maxBitStateLen(prog *syntax.Prog) int {
    	if !shouldBacktrack(prog) {
    		return 0
    	}
    	return maxBacktrackVector / len(prog.Inst)
    }
    
    // shouldBacktrack reports whether the program is too
    // long for the backtracker to run.
    func shouldBacktrack(prog *syntax.Prog) bool {
    	return len(prog.Inst) <= maxBacktrackProg
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 17:25:39 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/callback_windows.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package cgotest
    
    /*
    #include <windows.h>
    USHORT backtrace(ULONG FramesToCapture, PVOID *BackTrace) {
    #ifdef _AMD64_
    	CONTEXT context;
    	RtlCaptureContext(&context);
    	ULONG64 ControlPc;
    	ControlPc = context.Rip;
    	int i;
    	for (i = 0; i < FramesToCapture; i++) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 16:01:37 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  3. src/runtime/runtime-gdb_unix_test.go

    	re := regexp.MustCompile(`#.* runtime\.sigtramp `)
    	if found := re.Find(got) != nil; !found {
    		t.Fatalf("could not find sigtramp in backtrace")
    	}
    
    	re = regexp.MustCompile("#.* <signal handler called>")
    	loc := re.FindIndex(got)
    	if loc == nil {
    		t.Fatalf("could not find signal handler marker in backtrace")
    	}
    	rest := got[loc[1]:]
    
    	// Look for any frames after the signal handler. We want to see
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 17 19:05:30 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  4. src/runtime/testdata/testprog/badtraceback.go

    		lrOff = 32 // FIXED_FRAME or sys.MinFrameSize
    	}
    	lrPtr := (*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&arg)) - lrOff))
    	*lrPtr = 0xbad
    
    	// Print a backtrace. This should include diagnostics for the
    	// bad return PC and a hex dump.
    	panic("backtrace")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 06 23:02:28 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  5. src/internal/pkgbits/sync.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package pkgbits
    
    import (
    	"fmt"
    	"runtime"
    	"strings"
    )
    
    // fmtFrames formats a backtrace for reporting reader/writer desyncs.
    func fmtFrames(pcs ...uintptr) []string {
    	res := make([]string, 0, len(pcs))
    	walkFrames(pcs, func(file string, line int, name string, offset uintptr) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 04 17:12:28 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  6. src/path/path.go

    			// .. element: remove to last /
    			r += 2
    			switch {
    			case out.w > dotdot:
    				// can backtrack
    				out.w--
    				for out.w > dotdot && out.index(out.w) != '/' {
    					out.w--
    				}
    			case !rooted:
    				// cannot backtrack, but not rooted, so append .. element.
    				if out.w > 0 {
    					out.append('/')
    				}
    				out.append('.')
    				out.append('.')
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 23 17:33:57 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  7. src/sync/runtime.go

    // skipframes is the number of frames to omit during tracing, counting from
    // runtime_SemacquireMutex's caller.
    // The different forms of this function just tell the runtime how to present
    // the reason for waiting in a backtrace, and is used to compute some metrics.
    // Otherwise they're functionally identical.
    func runtime_SemacquireMutex(s *uint32, lifo bool, skipframes int)
    func runtime_SemacquireRWMutexR(s *uint32, lifo bool, skipframes int)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 16:32:27 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  8. src/internal/filepathlite/path.go

    			// .. element: remove to last separator
    			r += 2
    			switch {
    			case out.w > dotdot:
    				// can backtrack
    				out.w--
    				for out.w > dotdot && !IsPathSeparator(out.index(out.w)) {
    					out.w--
    				}
    			case !rooted:
    				// cannot backtrack, but not rooted, so append .. element.
    				if out.w > 0 {
    					out.append(Separator)
    				}
    				out.append('.')
    				out.append('.')
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.h

      // true of the mapping has changed.
      bool PropagateInputToOutput(const Value& operand, const OpResult& result);
    
      // Analyzes while loops to compute resource IDs for the loop results.
      // `body_info` is the backtrack analysis info for the loop body.
      void AnalyzeWhileLoop(Operation* while_op,
                            const BacktrackAnalysisInfo& body_info);
    
      // Analyzes tf.Case/tf.If ops to compute resource IDs.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top