Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 13 of 13 for systemstack (0.21 sec)

  1. src/runtime/mwbbuf.go

    		// and this way we can allow write barriers in the
    		// panic path.
    		getg().m.p.ptr().wbBuf.discard()
    		return
    	}
    
    	// Switch to the system stack so we don't have to worry about
    	// safe points.
    	systemstack(func() {
    		wbBufFlush1(getg().m.p.ptr())
    	})
    }
    
    // wbBufFlush1 flushes p's write barrier buffer to the GC work queue.
    //
    // This must not have write barriers because it is part of the write
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  2. src/runtime/coro.go

    // newcoro creates a new coro containing a
    // goroutine blocked waiting to run f
    // and returns that coro.
    func newcoro(f func(*coro)) *coro {
    	c := new(coro)
    	c.f = f
    	pc := getcallerpc()
    	gp := getg()
    	systemstack(func() {
    		mp := gp.m
    		start := corostart
    		startfv := *(**funcval)(unsafe.Pointer(&start))
    		gp = newproc1(startfv, gp, pc, true, waitReasonCoroutine)
    
    		// Scribble down locked thread state if needed and/or donate
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:18 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  3. src/runtime/tracecpu.go

    // has completed and that there are no more writers to it.
    func traceCPUFlush(gen uintptr) {
    	// Flush any remaining trace buffers containing CPU samples.
    	if buf := trace.cpuBuf[gen%2]; buf != nil {
    		systemstack(func() {
    			lock(&trace.lock)
    			traceBufFlush(buf, gen)
    			unlock(&trace.lock)
    			trace.cpuBuf[gen%2] = nil
    		})
    	}
    }
    
    // traceCPUSample writes a CPU profile sample stack to the execution tracer's
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top