Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 384 for ESCAPE (0.11 sec)

  1. src/internal/abi/escape.go

    //go:nosplit
    //go:nocheckptr
    func NoEscape(p unsafe.Pointer) unsafe.Pointer {
    	x := uintptr(p)
    	return unsafe.Pointer(x ^ 0)
    }
    
    var alwaysFalse bool
    var escapeSink any
    
    // Escape forces any pointers in x to escape to the heap.
    func Escape[T any](x T) T {
    	if alwaysFalse {
    		escapeSink = x
    	}
    	return x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 884 bytes
    - Viewed (0)
  2. src/html/template/escape.go

    // it is distinct enough that a developer can find the source of the problem
    // via a search engine.
    const filterFailsafe = "ZgotmplZ"
    
    // escape escapes a template node.
    func (e *escaper) escape(c context, n parse.Node) context {
    	switch n := n.(type) {
    	case *parse.ActionNode:
    		return e.escapeAction(c, n)
    	case *parse.BreakNode:
    		c.n = n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 02 15:18:39 UTC 2023
    - 32.4K bytes
    - Viewed (0)
  3. test/escape.go

    	_, p = out_escapes_2(17)
    	_, q = out_escapes_2(18)
    	chk(p, q, 17, "out_escapes_2")
    
    	x := defer1(20)
    	if x != 20 {
    		println("defer failed", x)
    		bad = true
    	}
    
    	if bad {
    		panic("BUG: no escape")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 06 18:34:24 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  4. src/go/doc/comment/testdata/escape.txt

    Russ Cox <******@****.***> 1648988431 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:40 UTC 2022
    - 535 bytes
    - Viewed (0)
  5. guava-gwt/src/com/google/common/escape/Escape.gwt.xml

    David P. Baker <******@****.***> 1641482883 -0800
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jan 06 15:30:58 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  6. test/escape2.go

    	myprint(nil, 1, 2, 3) // ERROR "1 does not escape" "2 does not escape" "3 does not escape" "... argument does not escape$"
    }
    
    func foo76c() {
    	myprint1(nil, 1, 2, 3) // ERROR "1 does not escape" "2 does not escape" "3 does not escape" "... argument does not escape$"
    }
    
    func foo76d() {
    	defer myprint(nil, 1, 2, 3) // ERROR "1 does not escape" "2 does not escape" "3 does not escape" "... argument does not escape$"
    }
    
    func foo76e() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  7. test/fixedbugs/issue31573.go

    	go f()
    	go f(new(int))           // ERROR "... argument does not escape$" "new\(int\) does not escape$"
    	go f(new(int), new(int)) // ERROR "... argument does not escape$" "new\(int\) does not escape$"
    
    	go f(nil...)
    	go f([]*int{}...)                   // ERROR "\[\]\*int{} does not escape$"
    	go f([]*int{new(int)}...)           // ERROR "\[\]\*int{...} does not escape$" "new\(int\) does not escape$"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 19:37:04 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  8. test/escape_slice.go

    func slice4(s []*int) { // ERROR "s does not escape"
    	i := 0 // ERROR "moved to heap: i"
    	s[0] = &i
    }
    
    func slice5(s []*int) { // ERROR "s does not escape"
    	if s != nil {
    		s = make([]*int, 10) // ERROR "make\(\[\]\*int, 10\) does not escape"
    	}
    	i := 0 // ERROR "moved to heap: i"
    	s[0] = &i
    }
    
    func slice6() {
    	s := make([]*int, 10) // ERROR "make\(\[\]\*int, 10\) does not escape"
    	// BAD: i should not escape
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  9. test/escape_closure.go

    // Test escape analysis for closure arguments.
    
    package escape
    
    var sink interface{}
    
    func ClosureCallArgs0() {
    	x := 0
    	func(p *int) { // ERROR "p does not escape" "func literal does not escape"
    		*p = 1
    	}(&x)
    }
    
    func ClosureCallArgs1() {
    	x := 0
    	for {
    		func(p *int) { // ERROR "p does not escape" "func literal does not escape"
    			*p = 1
    		}(&x)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 16:36:09 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  10. test/fixedbugs/issue7921.go

    	b := bytes.NewBuffer(make([]byte, 0, 64)) // ERROR "&bytes.Buffer{...} does not escape$" "make\(\[\]byte, 0, 64\) does not escape$" "inlining call to bytes.NewBuffer$"
    	for _, x := range xs {
    		b.WriteString(x)
    	}
    	return b.Len() // ERROR "inlining call to bytes.\(\*Buffer\).Len$"
    }
    
    func bufferNoEscape3(xs []string) string { // ERROR "xs does not escape$"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 19:43:26 UTC 2023
    - 2.2K bytes
    - Viewed (0)
Back to top