- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for printlock (0.19 sec)
-
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) -
src/runtime/lockrank_on.go
// even though l is not actually locked yet. func lockWithRank(l *mutex, rank lockRank) { if l == &debuglock || l == &paniclk || l == &raceFiniLock { // debuglock is only used for println/printlock(). Don't do lock // rank recording for it, since print/println are used when // printing out a lock ordering problem below. // // paniclk is only used for fatal throw/panic. Don't do lock
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 14:29:04 UTC 2024 - 10.6K bytes - Viewed (0) -
src/cmd/go/internal/work/shell.go
} // Print emits a to this Shell's output stream, formatting it like fmt.Print. // It is safe to call concurrently. func (sh *Shell) Print(a ...any) { sh.printLock.Lock() defer sh.printLock.Unlock() sh.printFunc(a...) } func (sh *Shell) printLocked(a ...any) { sh.printFunc(a...) } // WithAction returns a Shell identical to sh, but bound to Action a. func (sh *Shell) WithAction(a *Action) *Shell { sh2 := *sh
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 19.8K bytes - Viewed (0) -
src/runtime/lfstack.go
func lfnodeValidate(node *lfnode) { if base, _, _ := findObject(uintptr(unsafe.Pointer(node)), 0, 0); base != 0 { throw("lfstack node allocated from the heap") } if lfstackUnpack(lfstackPack(node, ^uintptr(0))) != node { printlock() println("runtime: bad lfnode address", hex(uintptr(unsafe.Pointer(node)))) throw("bad lfnode address") } } func lfstackPack(node *lfnode, cnt uintptr) uint64 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 2K bytes - Viewed (0) -
src/runtime/mcheckmark.go
// and otherwise sets obj's checkmark. It returns true if obj was // already checkmarked. func setCheckmark(obj, base, off uintptr, mbits markBits) bool { if !mbits.isMarked() { printlock() print("runtime: checkmarks found unexpected unmarked object obj=", hex(obj), "\n") print("runtime: found obj at *(", hex(base), "+", hex(off), ")\n") // Dump the source (base) object
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 2.8K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
src/runtime/mgcmark.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 21:25:11 UTC 2024 - 52.5K bytes - Viewed (0)