Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 59 for systemstack (0.23 sec)

  1. src/runtime/rwmutex.go

    	// while sleeping.
    	acquireLockRankAndM(rw.readRank)
    	lockWithRankMayAcquire(&rw.rLock, getLockRank(&rw.rLock))
    
    	if rw.readerCount.Add(1) < 0 {
    		// A writer is pending. Park on the reader queue.
    		systemstack(func() {
    			lock(&rw.rLock)
    			if rw.readerPass > 0 {
    				// Writer finished.
    				rw.readerPass -= 1
    				unlock(&rw.rLock)
    			} else {
    				// Queue this reader to be woken by
    				// the writer.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:29:04 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. src/runtime/os_windows.go

    	case _WAIT_TIMEOUT:
    		return -1
    
    	case _WAIT_ABANDONED:
    		systemstack(func() {
    			throw("runtime.semasleep wait_abandoned")
    		})
    
    	case _WAIT_FAILED:
    		systemstack(func() {
    			print("runtime: waitforsingleobject wait_failed; errno=", getlasterror(), "\n")
    			throw("runtime.semasleep wait_failed")
    		})
    
    	default:
    		systemstack(func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  3. src/runtime/sys_openbsd2.go

    		tp       unsafe.Pointer
    	}{_CLOCK_MONOTONIC, unsafe.Pointer(&ts)}
    	if errno := libcCall(unsafe.Pointer(abi.FuncPCABI0(clock_gettime_trampoline)), unsafe.Pointer(&args)); errno < 0 {
    		// Avoid growing the nosplit stack.
    		systemstack(func() {
    			println("runtime: errno", -errno)
    			throw("clock_gettime failed")
    		})
    	}
    	return ts.tv_sec*1e9 + int64(ts.tv_nsec)
    }
    func clock_gettime_trampoline()
    
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  4. src/runtime/cgocheck.go

    	// Do this check last because it is more expensive and rarely true.
    	// If it is false the expense doesn't matter since we are crashing.
    	if inPersistentAlloc(uintptr(unsafe.Pointer(dst))) {
    		return
    	}
    
    	systemstack(func() {
    		println("write of unpinned Go pointer", hex(uintptr(src)), "to non-Go memory", hex(uintptr(unsafe.Pointer(dst))))
    		throw(cgoWriteBarrierFail)
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. src/runtime/mgcwork.go

    // It's important that any use of gcWork during the mark phase prevent
    // the garbage collector from transitioning to mark termination since
    // gcWork may locally hold GC work buffers. This can be done by
    // disabling preemption (systemstack or acquirem).
    type gcWork struct {
    	// wbuf1 and wbuf2 are the primary and secondary work buffers.
    	//
    	// This can be thought of as a stack of both work buffers'
    	// pointers concatenated. When we pop the last pointer, we
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  6. src/runtime/tracetime.go

    	w, _ = w.ensure(1 + traceBytesPerNumber /* traceEvFrequency + frequency */)
    
    	// Write out the string.
    	w.byte(byte(traceEvFrequency))
    	w.varint(traceClockUnitsPerSecond())
    
    	// Immediately flush the buffer.
    	systemstack(func() {
    		lock(&trace.lock)
    		traceBufFlush(w.traceBuf, gen)
    		unlock(&trace.lock)
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  7. src/runtime/proc.go

    		// systemstack which clobbers g.sched.
    		save(pc, sp, bp)
    	}
    	if gp.syscallsp < gp.stack.lo || gp.stack.hi < gp.syscallsp {
    		systemstack(func() {
    			print("entersyscall inconsistent ", hex(gp.syscallsp), " [", hex(gp.stack.lo), ",", hex(gp.stack.hi), "]\n")
    			throw("entersyscall")
    		})
    	}
    
    	if trace.ok() {
    		systemstack(func() {
    			trace.GoSysCall()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  8. src/runtime/mcache.go

    	size uintptr   // total size of stacks in list
    }
    
    // dummy mspan that contains no free objects.
    var emptymspan mspan
    
    func allocmcache() *mcache {
    	var c *mcache
    	systemstack(func() {
    		lock(&mheap_.lock)
    		c = (*mcache)(mheap_.cachealloc.alloc())
    		c.flushGen.Store(mheap_.sweepgen)
    		unlock(&mheap_.lock)
    	})
    	for i := range c.alloc {
    		c.alloc[i] = &emptymspan
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10K bytes
    - Viewed (0)
  9. src/runtime/trace.go

    		// If the status was traced, nothing else to do.
    		if gp.trace.statusWasTraced(gen) {
    			return
    		}
    		// Scribble down information about this goroutine.
    		ug := untracedG{gp: gp, mid: -1}
    		systemstack(func() {
    			me := getg().m.curg
    			// We don't have to handle this G status transition because we
    			// already eliminated ourselves from consideration above.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  10. src/runtime/asm_s390x.s

    	MOVD	(g_sched+gobuf_sp)(g), R15	// sp = m->g0->sched.sp
    	SUB	$16, R15
    	MOVD	R3, 8(R15)
    	MOVD	$0, 0(R15)
    	BL	(R4)
    	BR	runtime·badmcall2(SB)
    
    // systemstack_switch is a dummy routine that systemstack leaves at the bottom
    // of the G stack.  We need to distinguish the routine that
    // lives at the bottom of the G stack from the one that lives
    // at the top of the system stack because the one at the top of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 25 09:18:28 UTC 2024
    - 28.1K bytes
    - Viewed (0)
Back to top