Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for ptrData (0.23 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/cmd/cgo/gcc.go

    				return n
    			}
    		}
    		return -1
    	}
    
    	strs = make([]string, nnames)
    
    	strdata := make(map[int]string, nnames)
    	strlens := make(map[int]int, nnames)
    
    	buildStrings := func() {
    		for n, strlen := range strlens {
    			data := strdata[n]
    			if len(data) <= strlen {
    				fatalf("invalid string literal")
    			}
    			strs[n] = data[:strlen]
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  6. src/cmd/link/internal/ld/data.go

    		pkg = *flagPluginPath
    	}
    	pkg = objabi.PathToPrefix(pkg)
    	name := pkg + arg[dot:eq]
    	value := arg[eq+1:]
    	if _, ok := strdata[name]; !ok {
    		strnames = append(strnames, name)
    	}
    	strdata[name] = value
    }
    
    // addstrdata sets the initial value of the string variable name to value.
    func addstrdata(arch *sys.Arch, l *loader.Loader, name, value string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 12 15:10:50 UTC 2024
    - 100.5K bytes
    - Viewed (1)
Back to top