- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 260 for escapers (0.15 sec)
-
test/escape_array.go
a.s = x b := new(a65537) // ERROR "new\(a65537\) escapes to heap" b.s = y } // BAD: x need not leak. func doesMakeSlice(x *string, y *string) { // ERROR "leaking param: x" "leaking param: y" a := make([]*string, 10) // ERROR "make\(\[\]\*string, 10\) does not escape" a[0] = x b := make([]*string, 65537) // ERROR "make\(\[\]\*string, 65537\) escapes to heap" b[0] = y }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 26 23:50:32 UTC 2021 - 3.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/windows/exec_windows.go
commandLine = append(commandLine, ' ') // TODO(bcmills): since we're already appending to a slice, it would be nice // to avoid the intermediate allocations of EscapeArg. // Perhaps we can factor out an appendEscapedArg function. commandLine = append(commandLine, EscapeArg(arg)...) } return string(commandLine) } // DecomposeCommandLine breaks apart its argument command line into unescaped parts using CommandLineToArgv,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 10 16:32:44 UTC 2023 - 7.3K bytes - Viewed (0) -
test/escape3.go
// run // Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test the run-time behavior of escape analysis-related optimizations. package main func main() { test1() } func test1() { check1(0) check1(1) check1(2) } type T1 struct { X, Y, Z int } func f() int { return 1 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 524 bytes - Viewed (0) -
android/guava/src/com/google/common/escape/CharEscaperBuilder.java
} return result; } /** * Convert this builder into a char escaper which is just a decorator around the underlying array * of replacement char[]s. * * @return an escaper that escapes based on the underlying array. */ public Escaper toEscaper() { return new CharArrayDecorator(toArray()); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jan 18 20:55:09 UTC 2022 - 4K bytes - Viewed (0) -
test/fixedbugs/issue21709.go
// license that can be found in the LICENSE file. // Issue 21709: range expression overly escapes. package p type S struct{} func (s *S) Inc() {} // ERROR "s does not escape" var N int func F1() { var s S for i := 0; i < N; i++ { fs := []func(){ // ERROR "\[\]func\(\){...} does not escape" s.Inc, // ERROR "s.Inc does not escape" } for _, f := range fs { f() } } } func F2() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Sep 12 08:31:49 UTC 2020 - 709 bytes - Viewed (0) -
test/escape_map.go
// license that can be found in the LICENSE file. // Test escape analysis for maps. package escape var sink interface{} func map0() { m := make(map[*int]*int) // ERROR "make\(map\[\*int\]\*int\) does not escape" // BAD: i should not escape i := 0 // ERROR "moved to heap: i" // BAD: j should not escape j := 0 // ERROR "moved to heap: j" m[&i] = &j _ = m } func map1() *int {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Sep 12 08:31:49 UTC 2020 - 2.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/net/PercentEscaperTest.java
assertUnicodeEscaping(e, "%F4%8F%BF%BF", '\uDBFF', '\uDFFF'); // simple string tests assertEquals("", e.escape("")); assertEquals("safestring", e.escape("safestring")); assertEquals("embedded%00null", e.escape("embedded\0null")); assertEquals("max%EF%BF%BFchar", e.escape("max\uffffchar")); } /** Tests the various ways that the space character can be handled */ public void testPlusForSpace() {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 5.2K bytes - Viewed (0) -
test/escape_runtime_atomic.go
func Storep() { var x int // ERROR "moved to heap: x" atomic.StorepNoWB(unsafe.Pointer(&ptr), unsafe.Pointer(&x)) } func Casp1() { // BAD: should always be "does not escape" x := new(int) // ERROR "escapes to heap|does not escape" var y int // ERROR "moved to heap: y" atomic.Casp1(&ptr, unsafe.Pointer(x), unsafe.Pointer(&y))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 874 bytes - Viewed (0) -
test/closure3.dir/main.go
if y(40) != 41 { ppanic("y(40) != 41") } }() } { y := func(x int) int { // ERROR "can inline main.func14" "func literal does not escape" return x + 2 } y, ok = map[int]func(int) int{ // ERROR "does not escape" 0: func(x int) int { return x + 1 }, // ERROR "can inline main.func15" "func literal escapes" }[0]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 17 19:36:29 UTC 2023 - 8.3K bytes - Viewed (0) -
test/escape_goto.go
// license that can be found in the LICENSE file. // Test escape analysis for goto statements. package escape var x bool func f1() { var p *int loop: if x { goto loop } // BAD: We should be able to recognize that there // aren't any more "goto loop" after here. p = new(int) // ERROR "escapes to heap" _ = p } func f2() { var p *int if x { loop:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jul 28 21:41:07 UTC 2021 - 677 bytes - Viewed (0)