Lines Matching full:addr
15 func RaceRead(addr unsafe.Pointer)
16 func RaceWrite(addr unsafe.Pointer)
17 func RaceReadRange(addr unsafe.Pointer, len int)
18 func RaceWriteRange(addr unsafe.Pointer, len int)
35 func raceReadObjectPC(t *_type, addr unsafe.Pointer, callerpc, pc uintptr) {
40 racereadrangepc(addr, t.size, callerpc, pc)
44 racereadpc(addr, callerpc, pc)
48 func raceWriteObjectPC(t *_type, addr unsafe.Pointer, callerpc, pc uintptr) {
53 racewriterangepc(addr, t.size, callerpc, pc)
57 racewritepc(addr, callerpc, pc)
62 func racereadpc(addr unsafe.Pointer, callpc, pc uintptr)
65 func racewritepc(addr unsafe.Pointer, callpc, pc uintptr)
120 addr uintptr
131 if _, x, n := findObject(unsafe.Pointer(ctx.addr)); x != nil {
247 func isvalidaddr(addr unsafe.Pointer) bool {
248 return racearenastart <= uintptr(addr) && uintptr(addr) < racearenaend ||
249 racedatastart <= uintptr(addr) && uintptr(addr) < racedataend
322 func racemapshadow(addr unsafe.Pointer, size uintptr) {
324 racearenastart = uintptr(addr)
326 if racearenaend < uintptr(addr)+size {
327 racearenaend = uintptr(addr) + size
329 racecall(&__tsan_map_shadow, uintptr(addr), size, 0, 0)
363 func racewriterangepc(addr unsafe.Pointer, sz, callpc, pc uintptr) {
373 racewriterangepc1(uintptr(addr), sz, pc)
380 func racereadrangepc(addr unsafe.Pointer, sz, callpc, pc uintptr) {
390 racereadrangepc1(uintptr(addr), sz, pc)
397 func raceacquire(addr unsafe.Pointer) {
398 raceacquireg(getg(), addr)
402 func raceacquireg(gp *g, addr unsafe.Pointer) {
403 if getg().raceignore != 0 || !isvalidaddr(addr) {
406 racecall(&__tsan_acquire, gp.racectx, uintptr(addr), 0, 0)
410 func racerelease(addr unsafe.Pointer) {
411 racereleaseg(getg(), addr)
415 func racereleaseg(gp *g, addr unsafe.Pointer) {
416 if getg().raceignore != 0 || !isvalidaddr(addr) {
419 racecall(&__tsan_release, gp.racectx, uintptr(addr), 0, 0)
423 func racereleasemerge(addr unsafe.Pointer) {
424 racereleasemergeg(getg(), addr)
428 func racereleasemergeg(gp *g, addr unsafe.Pointer) {
429 if getg().raceignore != 0 || !isvalidaddr(addr) {
432 racecall(&__tsan_release_merge, gp.racectx, uintptr(addr), 0, 0)
442 func RaceAcquire(addr unsafe.Pointer) {
443 raceacquire(addr)
448 func RaceRelease(addr unsafe.Pointer) {
449 racerelease(addr)
454 func RaceReleaseMerge(addr unsafe.Pointer) {
455 racereleasemerge(addr)