Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for NotInHeap (0.24 sec)

  1. src/runtime/cgo/cgo.go

    #cgo solaris CPPFLAGS: -D_POSIX_PTHREAD_SEMANTICS
    
    */
    import "C"
    
    import "runtime/internal/sys"
    
    // Incomplete is used specifically for the semantics of incomplete C types.
    type Incomplete struct {
    	_ sys.NotInHeap
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 14:29:46 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. test/fixedbugs/notinheap3.go

    // errorcheck -+ -0 -l -d=wb
    
    // Copyright 2016 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test write barrier elimination for notinheap.
    
    //go:build cgo
    
    package p
    
    import "runtime/cgo"
    
    type t1 struct {
    	x *nih
    	s []nih
    	y [1024]byte // Prevent write decomposition
    }
    
    type t2 struct {
    	x *ih
    	s []ih
    	y [1024]byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 17:46:15 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  3. src/runtime/mpagealloc_64bit.go

    		r := sysReserve(nil, b)
    		if r == nil {
    			throw("failed to reserve page summary memory")
    		}
    
    		// Put this reservation into a slice.
    		sl := notInHeapSlice{(*notInHeap)(r), 0, entries}
    		p.summary[l] = *(*[]pallocSum)(unsafe.Pointer(&sl))
    	}
    }
    
    // sysGrow performs architecture-dependent operations on heap
    // growth for the page allocator, such as mapping in new memory
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 03 11:00:10 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  4. src/runtime/mcheckmark.go

    // per-arena bitmap with a bit for every word in the arena. The mark
    // is stored on the bit corresponding to the first word of the marked
    // allocation.
    type checkmarksMap struct {
    	_ sys.NotInHeap
    	b [heapArenaBytes / goarch.PtrSize / 8]uint8
    }
    
    // If useCheckmark is true, marking of an object uses the checkmark
    // bits instead of the standard mark bits.
    var useCheckmark = false
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. src/runtime/mpagealloc_32bit.go

    	// the new slice should start.
    	for l, shift := range levelShift {
    		entries := 1 << (heapAddrBits - shift)
    
    		// Put this reservation into a slice.
    		sl := notInHeapSlice{(*notInHeap)(reservation), 0, entries}
    		p.summary[l] = *(*[]pallocSum)(unsafe.Pointer(&sl))
    
    		reservation = add(reservation, uintptr(entries)*pallocSumBytes)
    	}
    }
    
    // See mpagealloc_64bit.go for details.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 20 20:08:25 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  6. src/runtime/tracebuf.go

    }
    
    // traceBuf is per-M tracing buffer.
    //
    // TODO(mknyszek): Rename traceBuf to traceBatch, since they map 1:1 with event batches.
    type traceBuf struct {
    	_ sys.NotInHeap
    	traceBufHeader
    	arr [64<<10 - unsafe.Sizeof(traceBufHeader{})]byte // underlying buffer for traceBufHeader.buf
    }
    
    // byte appends v to buf.
    func (buf *traceBuf) byte(v byte) {
    	buf.arr[buf.pos] = v
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. src/go/internal/gccgoimporter/importer_test.go

    	{pkgpath: "issue31540", name: "S", gccgoVersion: 7, want: "type S struct{b int; map[Y]Z}"}, // should want "type S struct{b int; A2}" (issue  #44410)
    	{pkgpath: "issue34182", name: "T1", want: "type T1 struct{f *T2}"},
    	{pkgpath: "notinheap", name: "S", want: "type S struct{}"},
    }
    
    func TestGoxImporter(t *testing.T) {
    	testenv.MustHaveExec(t)
    	initmap := make(map[*types.Package]InitData)
    	imp := GetImporter([]string{"testdata"}, initmap)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:17:57 UTC 2022
    - 7.2K bytes
    - Viewed (0)
  8. src/reflect/deepequal.go

    	hard := func(v1, v2 Value) bool {
    		switch v1.Kind() {
    		case Pointer:
    			if !v1.typ().Pointers() {
    				// not-in-heap pointers can't be cyclic.
    				// At least, all of our current uses of runtime/internal/sys.NotInHeap
    				// have that property. The runtime ones aren't cyclic (and we don't use
    				// DeepEqual on them anyway), and the cgo-generated ones are
    				// all empty structs.
    				return false
    			}
    			fallthrough
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:30 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  9. src/runtime/mcentral.go

    package runtime
    
    import (
    	"internal/runtime/atomic"
    	"runtime/internal/sys"
    )
    
    // Central list of free objects of a given size.
    type mcentral struct {
    	_         sys.NotInHeap
    	spanclass spanClass
    
    	// partial and full contain two mspan sets: one of swept in-use
    	// spans, and one of unswept in-use spans. These two trade
    	// roles on each GC cycle. The unswept set is drained either by
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top