Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for TypeLinks (0.16 sec)

  1. src/runtime/type.go

    		}
    
    		if md.typemap == nil {
    			// If any of this module's typelinks match a type from a
    			// prior module, prefer that prior type by adding the offset
    			// to this module's typemap.
    			tm := make(map[typeOff]*_type, len(md.typelinks))
    			pinnedTypemaps = append(pinnedTypemaps, tm)
    			md.typemap = tm
    			for _, tl := range md.typelinks {
    				t := (*_type)(unsafe.Pointer(md.types + uintptr(tl)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  2. src/runtime/runtime1.go

    //
    //go:linkname reflect_typelinks reflect.typelinks
    func reflect_typelinks() ([]unsafe.Pointer, [][]int32) {
    	modules := activeModules()
    	sections := []unsafe.Pointer{unsafe.Pointer(modules[0].types)}
    	ret := [][]int32{modules[0].typelinks}
    	for _, md := range modules[1:] {
    		sections = append(sections, unsafe.Pointer(md.types))
    		ret = append(ret, md.typelinks)
    	}
    	return sections, ret
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  3. src/reflect/type.go

    			}
    			if tf.Offset != vf.Offset {
    				return false
    			}
    			if tf.Embedded() != vf.Embedded() {
    				return false
    			}
    		}
    		return true
    	}
    
    	return false
    }
    
    // typelinks is implemented in package runtime.
    // It returns a slice of the sections in each module,
    // and a slice of *rtype offsets in each module.
    //
    // The types in each module are sorted by string. That is, the first
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  4. src/runtime/symtab.go

    	covctrs, ecovctrs     uintptr
    	end, gcdata, gcbss    uintptr
    	types, etypes         uintptr
    	rodata                uintptr
    	gofunc                uintptr // go.func.*
    
    	textsectmap []textsect
    	typelinks   []int32 // offsets from types
    	itablinks   []*itab
    
    	ptab []ptabEntry
    
    	pluginpath string
    	pkghashes  []modulehash
    
    	// This slice records the initializing tasks that need to be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 40K bytes
    - Viewed (0)
  5. src/reflect/all_test.go

    				t.Errorf("lost x[%d][%d] = %d, want %d", i, j, k, i*n+j)
    			}
    		}
    	}
    }
    
    func TestTypelinksSorted(t *testing.T) {
    	var last string
    	for i, n := range TypeLinks() {
    		if n < last {
    			t.Errorf("typelinks not sorted: %q [%d] > %q [%d]", last, i-1, n, i)
    		}
    		last = n
    	}
    }
    
    func TestFuncOf(t *testing.T) {
    	// check construction and use of type not in binary
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top