Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for ptrData (0.17 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/cmd/cgo/internal/testerrors/ptr_test.go

    		name: "ptrdata1",
    		c: `#include <stdlib.h>
    		    void f26(void* p) {}`,
    		imports: []string{"unsafe"},
    		support: `type S26 struct { p *int; a [8*8]byte; u uintptr }`,
    		body:    `i := 0; p := &S26{u:uintptr(unsafe.Pointer(&i))}; q := (*S26)(C.malloc(C.size_t(unsafe.Sizeof(*p)))); *q = *p; C.f26(unsafe.Pointer(q))`,
    		fail:    false,
    	},
    	{
    		// Like ptrdata1, but with a type that uses a GC program.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:49 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  5. src/runtime/debuglog.go

    		}
    	}
    	return l
    }
    
    //go:nosplit
    func (l *dlogger) s(x string) *dlogger {
    	if !dlogEnabled {
    		return l
    	}
    
    	strData := unsafe.StringData(x)
    	datap := &firstmoduledata
    	if len(x) > 4 && datap.etext <= uintptr(unsafe.Pointer(strData)) && uintptr(unsafe.Pointer(strData)) < datap.end {
    		// String constants are in the rodata section, which
    		// isn't recorded in moduledata. But it has to be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  6. src/debug/elf/file.go

    		sym.Shndx = f.ByteOrder.Uint16(data[14:16])
    		str, _ := getString(strdata, int(sym.Name))
    		symbols[i].Name = str
    		symbols[i].Info = sym.Info
    		symbols[i].Other = sym.Other
    		symbols[i].Section = SectionIndex(sym.Shndx)
    		symbols[i].Value = uint64(sym.Value)
    		symbols[i].Size = uint64(sym.Size)
    		i++
    		data = data[Sym32Size:]
    	}
    
    	return symbols, strdata, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 23 16:49:58 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  7. src/runtime/stkframe.go

    	}
    	methodValueCallFrameObjs[0] = stackObjectRecord{
    		off:       -int32(alignUp(abiRegArgsType.Size_, 8)), // It's always the highest address local.
    		size:      int32(abiRegArgsType.Size_),
    		_ptrdata:  int32(abiRegArgsType.PtrBytes),
    		gcdataoff: uint32(uintptr(unsafe.Pointer(abiRegArgsType.GCData)) - mod.rodata),
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/handling-errors.md

    Dessa forma, se qualquer parte do código interno, extensão ou plug-in do Starlette lançar o `HTTPException`, o seu manipulador de exceção poderá capturar esse lançamento e tratá-lo.
    
    ```Python
    from starlette.exceptions import HTTPException as StarletteHTTPException
    ```
    
    ### Re-use os manipulares de exceção do **FastAPI**
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 22 01:42:11 UTC 2024
    - 10K bytes
    - Viewed (0)
Back to top