Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for racegostart (0.42 sec)

  1. src/runtime/race.go

    	racecall(&__tsan_malloc, 0, 0, uintptr(p), sz)
    }
    
    //go:nosplit
    func racefree(p unsafe.Pointer, sz uintptr) {
    	racecall(&__tsan_free, uintptr(p), sz, 0, 0)
    }
    
    //go:nosplit
    func racegostart(pc uintptr) uintptr {
    	gp := getg()
    	var spawng *g
    	if gp.m.curg != nil {
    		spawng = gp.m.curg
    	} else {
    		spawng = gp
    	}
    
    	var racectx uintptr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  2. src/runtime/time.go

    		// so there is no chance of getg().m being reassigned
    		// out from under us while this function executes.
    		tsLocal := &getg().m.p.ptr().timers
    		if tsLocal.raceCtx == 0 {
    			tsLocal.raceCtx = racegostart(abi.FuncPCABIInternal((*timers).run) + sys.PCQuantum)
    		}
    		raceacquirectx(tsLocal.raceCtx, unsafe.Pointer(t))
    	}
    
    	if t.state&(timerModified|timerZombie) != 0 {
    		badTimer()
    	}
    
    	f := t.f
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 14:36:24 UTC 2024
    - 37.5K bytes
    - Viewed (0)
Back to top