Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 98 for ptrdata (0.13 sec)

  1. src/cmd/cgo/internal/testshared/testdata/global/main.go

    import (
    	"testshared/globallib"
    )
    
    //go:noinline
    func testLoop() {
    	for i, s := range globallib.Data {
    		if s != int64(i) {
    			panic("testLoop: mismatch")
    		}
    	}
    }
    
    //go:noinline
    func ptrData() *[1<<20 + 10]int64 {
    	return &globallib.Data
    }
    
    //go:noinline
    func testMediumOffset() {
    	for i, s := range globallib.Data[1<<16-2:] {
    		if s != int64(i)+1<<16-2 {
    			panic("testMediumOffset: index mismatch")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/decodesym.go

    	if ctxt.loader.SymType(s) == sym.SDYNIMPORT {
    		symData := ctxt.loader.Data(s)
    		addr := decodetypeGcprogShlib(ctxt, symData)
    		ptrdata := decodetypePtrdata(ctxt.Arch, symData)
    		sect := findShlibSection(ctxt, ctxt.loader.SymPkg(s), addr)
    		if sect != nil {
    			bits := ptrdata / int64(ctxt.Arch.PtrSize)
    			r := make([]byte, (bits+7)/8)
    			// ldshlibsyms avoids closing the ELF file so sect.ReadAt works.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  3. src/runtime/stack.go

    	// if non-negative, offset from argp
    	off       int32
    	size      int32
    	_ptrdata  int32  // ptrdata, or -ptrdata is GC prog is used
    	gcdataoff uint32 // offset to gcdata from moduledata.rodata
    }
    
    func (r *stackObjectRecord) useGCProg() bool {
    	return r._ptrdata < 0
    }
    
    func (r *stackObjectRecord) ptrdata() uintptr {
    	x := r._ptrdata
    	if x < 0 {
    		return uintptr(-x)
    	}
    	return uintptr(x)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/liveness/plive.go

    		if sz != int64(int32(sz)) {
    			base.Fatalf("stack object too big: %v of type %v, size %d", v, t, sz)
    		}
    		lsym, useGCProg, ptrdata := reflectdata.GCSym(t)
    		if useGCProg {
    			ptrdata = -ptrdata
    		}
    		off = objw.Uint32(x, off, uint32(sz))
    		off = objw.Uint32(x, off, uint32(ptrdata))
    		off = objw.SymPtrOff(x, off, lsym)
    	}
    
    	if base.Flag.Live != 0 {
    		for _, v := range vars {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 15:22:22 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  5. src/runtime/mbitmap.go

    // for an object of size ptrdata.  Then it fills that space with the
    // pointer bitmask specified by the program prog.
    // The bitmask starts at s.startAddr.
    // The result must be deallocated with dematerializeGCProg.
    func materializeGCProg(ptrdata uintptr, prog *byte) *mspan {
    	// Each word of ptrdata needs one bit in the bitmap.
    	bitmapBytes := divRoundUp(ptrdata, 8*goarch.PtrSize)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
  6. src/reflect/type.go

    		mask[word/8] |= 1 << (word % 8)
    		gcdata = &mask[0]
    		ptrdata = (word + 1) * goarch.PtrSize
    
    		// overflow word must be last
    		if ptrdata != size {
    			panic("reflect: bad layout computation in MapOf")
    		}
    	}
    
    	b := &abi.Type{
    		Align_:   goarch.PtrSize,
    		Size_:    size,
    		Kind_:    abi.Struct,
    		PtrBytes: ptrdata,
    		GCData:   gcdata,
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  7. src/runtime/mgcmark.go

    			// a gc program (see issue 27447).
    			s = materializeGCProg(r.ptrdata(), gcdata)
    			gcdata = (*byte)(unsafe.Pointer(s.startAddr))
    		}
    
    		b := state.stack.lo + uintptr(obj.off)
    		if conservative {
    			scanConservative(b, r.ptrdata(), gcdata, gcw, &state)
    		} else {
    			scanblock(b, r.ptrdata(), gcdata, gcw, &state)
    		}
    
    		if s != nil {
    			dematerializeGCProg(s)
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  8. src/runtime/stkframe.go

    		return
    	}
    
    	f := frame.fn
    	pcdata := int32(-1)
    	if targetpc != f.entry() {
    		// Back up to the CALL. If we're at the function entry
    		// point, we want to use the entry map (-1), even if
    		// the first instruction of the function changes the
    		// stack map.
    		targetpc--
    		pcdata = pcdatavalue(f, abi.PCDATA_StackMapIndex, targetpc)
    	}
    	if pcdata == -1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  9. src/time/tzdata/tzdata.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package tzdata provides an embedded copy of the timezone database.
    // If this package is imported anywhere in the program, then if
    // the time package cannot find tzdata files on the system,
    // it will use this embedded information.
    //
    // Importing this package will increase the size of a program by about
    // 450 KB.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 22:30:53 UTC 2023
    - 3K bytes
    - Viewed (0)
  10. platforms/native/language-native/src/integTest/groovy/org/gradle/language/fixtures/app/DuplicateObjectiveCppBaseNamesTestApp.groovy

                void sayFoo1()
                {
                    NSFileHandle *stdout = [NSFileHandle fileHandleWithStandardOutput];
                    NSData *strData = [@"foo1" dataUsingEncoding: NSASCIIStringEncoding];
                    [stdout writeData: strData];
                }
            """),
                    sourceFile("objcpp/foo2", "foo.mm", """
                #import <iostream>
                #import "foo.h"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.7K bytes
    - Viewed (0)
Back to top