Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for printunlock (0.26 sec)

  1. src/runtime/print.go

    	mp.printlock++
    	if mp.printlock == 1 {
    		lock(&debuglock)
    	}
    	mp.locks-- // now we know debuglock is held and holding up mp.locks for us.
    }
    
    func printunlock() {
    	mp := getg().m
    	mp.printlock--
    	if mp.printlock == 0 {
    		unlock(&debuglock)
    	}
    }
    
    // write to goroutine-local buffer if diverting output,
    // or else standard error.
    func gwrite(b []byte) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 20 03:27:26 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  2. src/runtime/write_err_android.go

    package runtime
    
    import "unsafe"
    
    var (
    	writeHeader = []byte{6 /* ANDROID_LOG_ERROR */, 'G', 'o', 0}
    	writePath   = []byte("/dev/log/main\x00")
    	writeLogd   = []byte("/dev/socket/logdw\x00")
    
    	// guarded by printlock/printunlock.
    	writeFD  uintptr
    	writeBuf [1024]byte
    	writePos int
    )
    
    // Prior to Android-L, logging was done through writes to /dev/log files implemented
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. src/cmd/internal/goobj/builtinlist.go

    	{"runtime.printuintptr", 1},
    	{"runtime.printiface", 1},
    	{"runtime.printeface", 1},
    	{"runtime.printslice", 1},
    	{"runtime.printnl", 1},
    	{"runtime.printsp", 1},
    	{"runtime.printlock", 1},
    	{"runtime.printunlock", 1},
    	{"runtime.concatstring2", 1},
    	{"runtime.concatstring3", 1},
    	{"runtime.concatstring4", 1},
    	{"runtime.concatstring5", 1},
    	{"runtime.concatstrings", 1},
    	{"runtime.cmpstring", 1},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  4. src/runtime/debuglog.go

    	// the fatal panic path and this may deadlock.
    
    	printlock()
    
    	// Get the list of all debug logs.
    	allp := (*uintptr)(unsafe.Pointer(&allDloggers))
    	all := (*dlogger)(unsafe.Pointer(atomic.Loaduintptr(allp)))
    
    	// Count the logs.
    	n := 0
    	for l := all; l != nil; l = l.allLink {
    		n++
    	}
    	if n == 0 {
    		printunlock()
    		return
    	}
    
    	// Prepare read state for all logs.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    func printstring(string)
    func printpointer(any)
    func printuintptr(uintptr)
    func printiface(any)
    func printeface(any)
    func printslice(any)
    func printnl()
    func printsp()
    func printlock()
    func printunlock()
    
    func concatstring2(*[32]byte, string, string) string
    func concatstring3(*[32]byte, string, string, string) string
    func concatstring4(*[32]byte, string, string, string, string) string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/typecheck/builtin.go

    	{"printuintptr", funcTag, 31},
    	{"printiface", funcTag, 30},
    	{"printeface", funcTag, 30},
    	{"printslice", funcTag, 30},
    	{"printnl", funcTag, 9},
    	{"printsp", funcTag, 9},
    	{"printlock", funcTag, 9},
    	{"printunlock", funcTag, 9},
    	{"concatstring2", funcTag, 34},
    	{"concatstring3", funcTag, 35},
    	{"concatstring4", funcTag, 36},
    	{"concatstring5", funcTag, 37},
    	{"concatstrings", funcTag, 39},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  7. doc/asm.html

    	0x001d 00029 (x.go:4)	PCDATA	$0, $0
    	0x001d 00029 (x.go:4)	PCDATA	$1, $0
    	0x001d 00029 (x.go:4)	CALL	runtime.printlock(SB)
    	0x0022 00034 (x.go:4)	MOVQ	$3, (SP)
    	0x002a 00042 (x.go:4)	CALL	runtime.printint(SB)
    	0x002f 00047 (x.go:4)	CALL	runtime.printnl(SB)
    	0x0034 00052 (x.go:4)	CALL	runtime.printunlock(SB)
    	0x0039 00057 (x.go:5)	MOVQ	8(SP), BP
    	0x003e 00062 (x.go:5)	ADDQ	$16, SP
    	0x0042 00066 (x.go:5)	RET
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 19:15:27 UTC 2023
    - 36.3K bytes
    - Viewed (1)
  8. src/runtime/mgcmark.go

    			continue
    		}
    		obj.setRecord(nil) // Don't scan it again.
    		if stackTraceDebug {
    			printlock()
    			print("  live stkobj at", hex(state.stack.lo+uintptr(obj.off)), "of size", obj.size)
    			if conservative {
    				print(" (conservative)")
    			}
    			println()
    			printunlock()
    		}
    		gcdata := r.gcdata()
    		var s *mspan
    		if r.useGCProg() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/walk/builtin.go

    		if params := on.Type().Params(); len(params) > 0 {
    			t := params[0].Type
    			n = typecheck.Conv(n, t)
    			r.Args.Append(n)
    		}
    		calls = append(calls, r)
    	}
    
    	calls = append(calls, mkcall("printunlock", nil, init))
    
    	typecheck.Stmts(calls)
    	walkExprList(calls, init)
    
    	r := ir.NewBlockStmt(base.Pos, nil)
    	r.List = calls
    	return walkStmt(typecheck.Stmt(r))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  10. src/runtime/mgc.go

    			gcController.globalsScan.Load()>>20, " MB globals, ",
    			work.maxprocs, " P")
    		if work.userForced {
    			print(" (forced)")
    		}
    		print("\n")
    		printunlock()
    	}
    
    	// Set any arena chunks that were deferred to fault.
    	lock(&userArenaState.lock)
    	faultList := userArenaState.fault
    	userArenaState.fault = nil
    	unlock(&userArenaState.lock)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
Back to top