Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 111 for bigptr (0.18 sec)

  1. test/interface/bigdata.go

    func test(name string, i I) {
    	m := i.M()
    	if m != 12345 {
    		println(name, m)
    		bad = true
    	}
    }
    
    func ptrs() {
    	var bigptr BigPtr = BigPtr{ 10000, 2000, 300, 45 }
    	var smallptr SmallPtr = SmallPtr{ 12345 }
    	var intptr IntPtr = 12345
    
    //	test("bigptr", bigptr)
    	test("&bigptr", &bigptr)
    //	test("smallptr", smallptr)
    	test("&smallptr", &smallptr)
    //	test("intptr", intptr)
    	test("&intptr", &intptr)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 06:33:41 UTC 2012
    - 1.4K bytes
    - Viewed (0)
  2. src/runtime/tagptr.go

    Ian Lance Taylor <******@****.***> 1681508172 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 18 20:22:50 UTC 2023
    - 496 bytes
    - Viewed (0)
  3. test/nilptr.go

    Dmitri Shuralyov <******@****.***> 1697569678 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  4. src/internal/xcoff/testdata/bigar-ppc64

    Clément Chigot <******@****.***> 1544435619 +0100
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 11 16:15:10 UTC 2018
    - 2.4K bytes
    - Viewed (0)
  5. src/internal/xcoff/testdata/bigar-empty

    Clément Chigot <******@****.***> 1544435619 +0100
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 11 16:15:10 UTC 2018
    - 128 bytes
    - Viewed (0)
  6. test/fixedbugs/issue29362b.go

    	sinkptr = q
    	<-throttle
    	sinkptr = p
    }
    
    var sinkptr *byte
    
    func main() {
    	const N = 1000
    	for i := 0; i < N; i++ {
    		throttle <- struct{}{}
    		go noPointerArgs(nil, nil, badPtr, badPtr, badPtr, badPtr, badPtr, badPtr, badPtr)
    		sink = make([]byte, 4096)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 03 23:37:42 UTC 2019
    - 1.4K bytes
    - Viewed (0)
  7. test/fixedbugs/issue27695c.go

    	g(badPtr, badPtr, badPtr, badPtr)
    
    	// Then call a function which returns a pointer.
    	// That return slot starts out holding a bad pointer.
    	return d(io.EOF)
    }
    
    //go:noinline
    func g(x, y, z, w uintptr) {
    }
    
    type T struct {
    }
    
    func (t *T) Foo(e error) error {
    	runtime.GC()
    	return e
    }
    
    func main() {
    	// Functions
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 13 22:52:09 UTC 2018
    - 1.3K bytes
    - Viewed (0)
  8. src/go/doc/comment/testdata/list5.txt

    Text.
    
      1. One
      999999999999999999999. Big
      1000000000000000000000. Bigger
      1000000000000000000001. Biggest
    
    -- gofmt --
    Text.
    
     1. One
     999999999999999999999. Big
     1000000000000000000000. Bigger
     1000000000000000000001. Biggest
    
    -- text --
    Text.
    
     1. One
     999999999999999999999. Big
     1000000000000000000000. Bigger
     1000000000000000000001. Biggest
    
    -- markdown --
    Text.
    
     1. One
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:48 UTC 2022
    - 590 bytes
    - Viewed (0)
  9. test/fixedbugs/issue29362.go

    func noPointerArgs(a, b, c, d uintptr) {
    	sink = make([]byte, 4096)
    	<-throttle
    }
    
    func main() {
    	const N = 1000
    	for i := 0; i < N; i++ {
    		throttle <- struct{}{}
    		go noPointerArgs(badPtr, badPtr, badPtr, badPtr)
    		sink = make([]byte, 4096)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 03 20:17:01 UTC 2019
    - 879 bytes
    - Viewed (0)
  10. test/fixedbugs/issue30041.go

    package main
    
    import (
    	"reflect"
    	"runtime"
    	"unsafe"
    )
    
    var badPtr uintptr
    
    var sink []byte
    
    func init() {
    	// Allocate large enough to use largeAlloc.
    	b := make([]byte, 1<<16-1)
    	sink = b // force heap allocation
    	//  Any space between the object and the end of page is invalid to point to.
    	badPtr = uintptr(unsafe.Pointer(&b[len(b)-1])) + 1
    }
    
    type ft func() *int
    
    var fn ft
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 01 19:23:02 UTC 2019
    - 1.1K bytes
    - Viewed (0)
Back to top