Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for hexdumpWords (0.43 sec)

  1. src/runtime/print.go

    }
    
    func printiface(i iface) {
    	print("(", i.tab, ",", i.data, ")")
    }
    
    // hexdumpWords prints a word-oriented hex dump of [p, end).
    //
    // If mark != nil, it will be called with each printed word's address
    // and should return a character mark to appear just before that
    // word's value. It can return 0 to indicate no mark.
    func hexdumpWords(p, end uintptr, mark func(uintptr) byte) {
    	printlock()
    	var markbuf [1]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/mgcsweep.go

    		}
    		zombie := mbits.isMarked() && !alloc
    		if zombie {
    			print(" zombie")
    		}
    		print("\n")
    		if zombie {
    			length := s.elemsize
    			if length > 1024 {
    				length = 1024
    			}
    			hexdumpWords(addr, addr+length, nil)
    		}
    		mbits.advance()
    		abits.advance()
    	}
    	throw("found pointer to free object")
    }
    
    // deductSweepCredit deducts sweep credit for allocating a span of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:52:18 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  3. src/runtime/mgcmark.go

    func scanConservative(b, n uintptr, ptrmask *uint8, gcw *gcWork, state *stackScanState) {
    	if debugScanConservative {
    		printlock()
    		print("conservatively scanning [", hex(b), ",", hex(b+n), ")\n")
    		hexdumpWords(b, b+n, func(p uintptr) byte {
    			if ptrmask != nil {
    				word := (p - b) / goarch.PtrSize
    				bits := *addb(ptrmask, word/8)
    				if (bits>>(word%8))&1 == 0 {
    					return '$'
    				}
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  4. src/runtime/traceback.go

    		lo = stk.lo
    	}
    	if hi > stk.hi {
    		hi = stk.hi
    	}
    
    	// Print the hex dump.
    	print("stack: frame={sp:", hex(frame.sp), ", fp:", hex(frame.fp), "} stack=[", hex(stk.lo), ",", hex(stk.hi), ")\n")
    	hexdumpWords(lo, hi, func(p uintptr) byte {
    		switch p {
    		case frame.fp:
    			return '>'
    		case frame.sp:
    			return '<'
    		case bad:
    			return '!'
    		}
    		return 0
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 55.1K bytes
    - Viewed (0)
Back to top