Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 112 for alignof (0.28 sec)

  1. src/runtime/extern.go

    	the lock. But instead of the value corresponding to the amount of contention that call
    	stack caused, it corresponds to the amount of time the caller of unlock had to wait in its
    	original call to lock. A future release is expected to align those and remove this setting.
    
    	invalidptr: invalidptr=1 (the default) causes the garbage collector and stack
    	copier to crash the program if an invalid pointer value (for example, 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/infer.go

    		defer func() {
    			assert(inferred == nil || len(inferred) == len(tparams) && !containsNil(inferred))
    		}()
    	}
    
    	if traceInference {
    		check.dump("== infer : %s%s ➞ %s", tparams, params, targs) // aligned with rename print below
    		defer func() {
    			check.dump("=> %s ➞ %s\n", tparams, inferred)
    		}()
    	}
    
    	// There must be at least one type parameter, and no more type arguments than type parameters.
    	n := len(tparams)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 13:54:20 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  3. src/cmd/go/internal/load/test.go

    		// but not RawImports (because they were not in the source code).
    		// We insert TestImports, imports, and rawTestImports at the start of
    		// these lists to preserve the alignment.
    		// Note that p.Internal.Imports may not be aligned with p.Imports/p.Internal.RawImports,
    		// but we insert at the beginning there too just for consistency.
    		ptest.Imports = str.StringList(p.TestImports, p.Imports)
    		ptest.Internal.Imports = append(imports, p.Internal.Imports...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  4. src/go/types/infer.go

    		defer func() {
    			assert(inferred == nil || len(inferred) == len(tparams) && !containsNil(inferred))
    		}()
    	}
    
    	if traceInference {
    		check.dump("== infer : %s%s ➞ %s", tparams, params, targs) // aligned with rename print below
    		defer func() {
    			check.dump("=> %s ➞ %s\n", tparams, inferred)
    		}()
    	}
    
    	// There must be at least one type parameter, and no more type arguments than type parameters.
    	n := len(tparams)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 13:54:20 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  5. src/runtime/asm_loong64.s

    	MOVV	(g_sched+gobuf_ctxt)(g), R19
    	BEQ	R19, 2(PC)
    	JAL	runtime·abort(SB)
    	RET
    
    // func asmcgocall(fn, arg unsafe.Pointer) int32
    // Call fn(arg) on the scheduler stack,
    // aligned appropriately for the gcc ABI.
    // See cgocall.go for more details.
    TEXT ·asmcgocall(SB),NOSPLIT,$0-20
    	MOVV	fn+0(FP), R25
    	MOVV	arg+8(FP), R4
    
    	MOVV	R3, R12	// save original stack pointer
    	MOVV	g, R13
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 15:04:25 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  6. src/internal/trace/gc.go

    	// encounters a change in the instantaneous mutator
    	// utilization function. Hence, the minimum of this function
    	// will always occur when one of the edges of the window
    	// aligns with a utilization change, so these are the only
    	// points we need to consider.
    	//
    	// We compute the mutator utilization function incrementally
    	// by tracking the integral from t=0 to the left edge of the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 26K bytes
    - Viewed (0)
  7. src/runtime/chan.go

    func makechan(t *chantype, size int) *hchan {
    	elem := t.Elem
    
    	// compiler checks this but be safe.
    	if elem.Size_ >= 1<<16 {
    		throw("makechan: invalid channel element type")
    	}
    	if hchanSize%maxAlign != 0 || elem.Align_ > maxAlign {
    		throw("makechan: bad alignment")
    	}
    
    	mem, overflow := math.MulUintptr(elem.Size_, uintptr(size))
    	if overflow || mem > maxAlloc-hchanSize || size < 0 {
    		panic(plainError("makechan: size out of range"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  8. src/cmd/internal/obj/arm64/asm7.go

    		// 2-byte and 1-byte aligned addresses, so the address of load/store must be aligned.
    		// Also symbols with prefix of "go:string." are Go strings, which will go into
    		// the symbol table, their addresses are not necessary aligned, rule this out.
    		align := int64(1 << sz)
    		if o.a1 == C_ADDR && p.From.Offset%align == 0 && !strings.HasPrefix(p.From.Sym.Name, "go:string.") ||
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 201.1K bytes
    - Viewed (0)
  9. src/cmd/vendor/github.com/google/pprof/internal/report/source.go

    			break
    		}
    	}
    	return column
    }
    
    // rightPad pads the input with spaces on the right-hand-side to make it have
    // at least width n. It treats tabs as enough spaces that lead to the next
    // 8-aligned tab-stop.
    func rightPad(s string, n int) string {
    	var str strings.Builder
    
    	// Convert tabs to spaces as we go so padding works regardless of what prefix
    	// is placed before the result.
    	column := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 31.3K bytes
    - Viewed (0)
  10. src/sync/atomic/atomic_test.go

    		t.Fatalf("Int64 pointer = %#x, want 8-aligned", p)
    	}
    
    	var unsigned struct {
    		_ uint32
    		i Uint64
    	}
    	if o := reflect.TypeOf(&unsigned).Elem().Field(1).Offset; o != 8 {
    		t.Fatalf("Uint64 offset = %d, want 8", o)
    	}
    	if p := reflect.ValueOf(&unsigned).Elem().Field(1).Addr().Pointer(); p&7 != 0 {
    		t.Fatalf("Int64 pointer = %#x, want 8-aligned", p)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 71.4K bytes
    - Viewed (0)
Back to top