Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,398 for mescapes (0.12 sec)

  1. test/escape2n.go

    }
    
    func foo76f() {
    	for {
    		// TODO: This one really only escapes its scope, but we don't distinguish yet.
    		defer myprint(nil, 1, 2, 3) // ERROR "... argument does not escape$" "1 escapes to heap$" "2 escapes to heap$" "3 escapes to heap$"
    	}
    }
    
    func foo76g() {
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  2. test/fixedbugs/issue13799.go

    		fn = func() { // ERROR "func literal escapes to heap$"
    			m[i] = append(m[i], 0)
    			if j < 25 {
    				j++
    				fn()
    			}
    		}
    		fn()
    	}
    
    	if len(m) != maxI {
    		panic(fmt.Sprintf("iter %d: maxI = %d, len(m) = %d", iter, maxI, len(m))) // ERROR "iter escapes to heap$" "len\(m\) escapes to heap$" "500 escapes to heap$" "... argument does not escape$" "fmt.Sprintf\(.*\) escapes to heap"
    	}
    }
    
    func test2(iter int) {
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/escape/ArrayBasedEscaperMap.java

       *
       * @param replacements a map of characters to their escaped representations
       */
      public static ArrayBasedEscaperMap create(Map<Character, String> replacements) {
        return new ArrayBasedEscaperMap(createReplacementArray(replacements));
      }
    
      // The underlying replacement array we can share between multiple escaper
      // instances.
      private final char[][] replacementArray;
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  4. test/escape_indir.go

    	x := &ConstPtr{} // ERROR "&ConstPtr{} escapes to heap"
    	x.p = &i
    	sink = x
    }
    
    func constptr2() {
    	i := 0           // ERROR "moved to heap: i"
    	x := &ConstPtr{} // ERROR "&ConstPtr{} does not escape"
    	x.p = &i
    	sink = *x // ERROR "\*x escapes to heap"
    }
    
    func constptr4() *ConstPtr {
    	p := new(ConstPtr) // ERROR "new\(ConstPtr\) escapes to heap"
    	*p = *&ConstPtr{}  // ERROR "&ConstPtr{} does not escape"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 12 08:31:49 UTC 2020
    - 3.3K bytes
    - Viewed (0)
  5. test/escape_struct_param1.go

    	u1 := U{&s1, &ps2}
    	u2 := &U{&s3, &ps4}  // ERROR "&U{...} does not escape$"
    	u3 := &U{&s5, &ps6}  // ERROR "&U{...} escapes to heap$"
    	v := &V{u1, u2, &u3} // ERROR "&V{...} does not escape$"
    	Ssink = v.UPiSPa()   // Ssink = &s3 (only &s3 really escapes)
    }
    
    // BAD: need fine-grained (field-sensitive) analysis to avoid spurious escape of all but &s3
    func tUPiSPb() {
    	s1 := "ant"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 12 08:31:49 UTC 2020
    - 8.9K bytes
    - Viewed (0)
  6. test/escape_struct_param2.go

    	u1 := U{&s1, &ps2}
    	u2 := &U{&s3, &ps4}  // ERROR "&U{...} does not escape$"
    	u3 := &U{&s5, &ps6}  // ERROR "&U{...} escapes to heap$"
    	v := &V{u1, u2, &u3} // ERROR "&V{...} does not escape$"
    	Ssink = v.UPiSPa()   // Ssink = &s3 (only &s3 really escapes)
    }
    
    // BAD: need fine-grained (field-sensitive) analysis to avoid spurious escape of all but &s3
    func tUPiSPb() {
    	s1 := "ant"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 12 08:31:49 UTC 2020
    - 8.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/escape/ArrayBasedCharEscaper.java

       */
      @Override
      public final String escape(String s) {
        checkNotNull(s); // GWT specific check (do not optimize).
        for (int i = 0; i < s.length(); i++) {
          char c = s.charAt(i);
          if ((c < replacementsLength && replacements[c] != null) || c > safeMax || c < safeMin) {
            return escapeSlow(s, i);
          }
        }
        return s;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  8. test/escape_reflect.go

    	uintTyp   = reflect.TypeOf(uint(0))    // ERROR "uint\(0\) does not escape"
    	stringTyp = reflect.TypeOf(string("")) // ERROR ".. does not escape"
    	bytesTyp  = reflect.TypeOf([]byte{})   // ERROR "\[\]byte{} does not escape"
    )
    
    // Unfortunate: should not escape.
    func convert1(x int) uint {
    	v := reflect.ValueOf(x) // ERROR "x escapes to heap"
    	return uint(v.Convert(uintTyp).Uint())
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  9. test/escape_slice.go

    	s := []*int{&i} // ERROR "\[\]\*int{...} escapes to heap"
    	return s
    }
    
    func slice11() {
    	i := 2
    	s := make([]int, 2, 3) // ERROR "make\(\[\]int, 2, 3\) does not escape"
    	s = make([]int, i, 3)  // ERROR "make\(\[\]int, i, 3\) does not escape"
    	s = make([]int, i, 1)  // ERROR "make\(\[\]int, i, 1\) does not escape"
    	_ = s
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  10. test/escape_field.go

    	x1 := iface.(X)
    	sink = x1.p1
    }
    
    func field18() {
    	i := 0 // ERROR "moved to heap: i$"
    	var x X
    	// BAD: &i should not escape
    	x.p1 = &i
    	var iface interface{} = x // ERROR "x does not escape"
    	y, _ := iface.(Y)         // Put X, but extracted Y. The cast will fail, so y is zero initialized.
    	sink = y                  // ERROR "y escapes to heap"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 12 08:31:49 UTC 2020
    - 2.9K bytes
    - Viewed (0)
Back to top