Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 35 for ProcID (0.13 sec)

  1. src/runtime/align_runtime_test.go

    package runtime
    
    import "unsafe"
    
    // AtomicFields is the set of fields on which we perform 64-bit atomic
    // operations (all the *64 operations in internal/runtime/atomic).
    var AtomicFields = []uintptr{
    	unsafe.Offsetof(m{}.procid),
    	unsafe.Offsetof(p{}.gcFractionalMarkTime),
    	unsafe.Offsetof(profBuf{}.overflow),
    	unsafe.Offsetof(profBuf{}.overflowTime),
    	unsafe.Offsetof(heapStatsDelta{}.tinyAllocCount),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. src/runtime/sys_plan9_amd64.s

    	SUBQ	$(64*1024), AX		// stack size
    	MOVQ	AX, (g_stack+stack_lo)(DX)
    	MOVQ	AX, g_stackguard0(DX)
    	MOVQ	AX, g_stackguard1(DX)
    
    	// Initialize procid from TOS struct.
    	MOVQ	_tos(SB), AX
    	MOVL	64(AX), AX
    	MOVQ	AX, m_procid(CX)	// save pid as m->procid
    
    	// Finally, initialize g.
    	get_tls(BX)
    	MOVQ	DX, g(BX)
    
    	CALL	runtime·stackcheck(SB)	// smashes AX, CX
    	CALL	runtime·mstart(SB)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 01 16:41:22 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  3. src/runtime/sys_plan9_386.s

    	SUBL	$(64*1024), AX		// stack size
    	MOVL	AX, (g_stack+stack_lo)(DX)
    	MOVL	AX, g_stackguard0(DX)
    	MOVL	AX, g_stackguard1(DX)
    
    	// Initialize procid from TOS struct.
    	MOVL	_tos(SB), AX
    	MOVL	48(AX), AX
    	MOVL	AX, m_procid(CX)	// save pid as m->procid
    
    	// Finally, initialize g.
    	get_tls(BX)
    	MOVL	DX, g(BX)
    
    	CALL	runtime·stackcheck(SB)	// smashes AX, CX
    	CALL	runtime·mstart(SB)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 21 22:12:04 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  4. src/runtime/sys_plan9_arm.s

    	MOVW	R0, g_stack+stack_hi(g)
    	SUB	$(64*1024), R0
    	MOVW	R0, (g_stack+stack_lo)(g)
    	MOVW	R0, g_stackguard0(g)
    	MOVW	R0, g_stackguard1(g)
    
    	// Initialize procid from TOS struct.
    	MOVW	_tos(SB), R0
    	MOVW	48(R0), R0
    	MOVW	R0, m_procid(R1)	// save pid as m->procid
    
    	BL	runtime·mstart(SB)
    
    	// Exit the thread.
    	MOVW	$0, R0
    	MOVW	R0, 4(R13)
    	CALL	runtime·exits(SB)
    	JMP	0(PC)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 29 14:15:04 UTC 2021
    - 7K bytes
    - Viewed (0)
  5. src/runtime/os_aix.go

    func miniterrno() {
    	mp := getg().m
    	r, _ := syscall0(&libc__Errno)
    	mp.perrno = r
    
    }
    
    func minit() {
    	miniterrno()
    	minitSignals()
    	getg().m.procid = uint64(pthread_self())
    }
    
    func unminit() {
    	unminitSignals()
    	getg().m.procid = 0
    }
    
    // Called from exitm, but not from drop, to undo the effect of thread-owned
    // resources in minit, semacreate, or elsewhere. Do not take locks after calling this.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  6. src/runtime/rand.go

    // the full requested amount.
    // Whatever entropy r already contained is preserved.
    func readTimeRandom(r []byte) {
    	// Inspired by wyrand.
    	// An earlier version of this code used getg().m.procid as well,
    	// but note that this is called so early in startup that procid
    	// is not initialized yet.
    	v := uint64(nanotime())
    	for len(r) > 0 {
    		v ^= 0xa0761d6478bd642f
    		v *= 0xe7037ed1a0b428db
    		size := 8
    		if len(r) < 8 {
    			size = len(r)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 14:32:47 UTC 2024
    - 8K bytes
    - Viewed (0)
  7. src/internal/trace/event/event.go

    var ArgTypes = [...]string{
    	"seq",     // sequence number
    	"pstatus", // P status
    	"gstatus", // G status
    	"g",       // trace.GoID
    	"m",       // trace.ThreadID
    	"p",       // trace.ProcID
    	"string",  // string ID
    	"stack",   // stack ID
    	"value",   // uint64
    	"task",    // trace.TaskID
    }
    
    // Names is a helper that produces a mapping of event names to event types.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  8. src/runtime/os_wasm.go

    import (
    	"internal/runtime/atomic"
    	"unsafe"
    )
    
    func osinit() {
    	// https://webassembly.github.io/spec/core/exec/runtime.html#memory-instances
    	physPageSize = 64 * 1024
    	initBloc()
    	ncpu = 1
    	getg().m.procid = 2
    }
    
    const _SIGSEGV = 0xb
    
    func sigpanic() {
    	gp := getg()
    	if !canpanic() {
    		throw("unexpected signal during runtime execution")
    	}
    
    	// js only invokes the exception handler for memory faults.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. src/runtime/tracecpu.go

    	if traceEnabled() {
    		throw("traceInitReadCPU called with trace enabled")
    	}
    	// Create new profBuf for CPU samples that will be emitted as events.
    	// Format: after the timestamp, header is [pp.id, gp.goid, mp.procid].
    	trace.cpuLogRead[0] = newProfBuf(3, profBufWordCount, profBufTagCount)
    	trace.cpuLogRead[1] = newProfBuf(3, profBufWordCount, profBufTagCount)
    	// We must not acquire trace.signalLock outside of a signal handler: a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  10. src/runtime/export_debug_test.go

    	if gp.lockedm == 0 {
    		return nil, plainError("goroutine not locked to thread")
    	}
    
    	tid := int(gp.lockedm.ptr().procid)
    	if tid == 0 {
    		return nil, plainError("missing tid")
    	}
    
    	f := efaceOf(&fn)
    	if f._type == nil || f._type.Kind_&abi.KindMask != abi.Func {
    		return nil, plainError("fn must be a function")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top