Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for srcbuf (0.33 sec)

  1. src/bufio/bufio_test.go

    	srcBuf := bytes.NewBuffer(make([]byte, 8192))
    	src := NewReader(onlyReader{srcBuf})
    	dstBuf := new(bytes.Buffer)
    	dst := onlyWriter{dstBuf}
    	for i := 0; i < b.N; i++ {
    		srcBuf.Reset()
    		src.Reset(onlyReader{srcBuf})
    		dstBuf.Reset()
    		io.Copy(dst, src)
    	}
    }
    
    func BenchmarkReaderCopyNoWriteTo(b *testing.B) {
    	srcBuf := bytes.NewBuffer(make([]byte, 8192))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:56:01 UTC 2023
    - 51.5K bytes
    - Viewed (0)
  2. src/runtime/mprof.go

    	// pcbuf which is usually given to us by our caller. When it's not, we have
    	// to allocate one here. This will only happen for goroutines that were in a
    	// syscall when the goroutine profile started or for goroutines that manage
    	// to execute before we finish iterating over all the goroutines.
    	if pcbuf == nil {
    		pcbuf = makeProfStack()
    	}
    
    	var u unwinder
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  3. src/runtime/traceback.go

    		return 0
    	}
    
    	ctxt := u.g.ptr().cgoCtxt[u.cgoCtxt]
    	u.cgoCtxt--
    	cgoContextPCs(ctxt, pcBuf)
    	for i, pc := range pcBuf {
    		if pc == 0 {
    			return i
    		}
    	}
    	return len(pcBuf)
    }
    
    // tracebackPCs populates pcBuf with the return addresses for each frame from u
    // and returns the number of PCs written to pcBuf. The returned PCs correspond
    // to "logical frames" rather than "physical frames"; that is if A is inlined
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  4. src/cmd/internal/testdir/testdir_test.go

    		}
    
    		if o.negative {
    			fmt.Fprintf(&errbuf, "%s:%d: %s: wrong opcode found: %q\n", t.goFileName(), o.line, env, o.opcode.String())
    		} else {
    			fmt.Fprintf(&errbuf, "%s:%d: %s: opcode not found: %q\n", t.goFileName(), o.line, env, o.opcode.String())
    		}
    	}
    	return errors.New(errbuf.String())
    }
    
    // defaultRunOutputLimit returns the number of runoutput tests that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go

    	n = int(r0)
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func putmsg(fd int, clptr *strbuf, dataptr *strbuf, flags int) (err error) {
    	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procputmsg)), 4, uintptr(fd), uintptr(unsafe.Pointer(clptr)), uintptr(unsafe.Pointer(dataptr)), uintptr(flags), 0, 0)
    	if e1 != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 59.7K bytes
    - Viewed (0)
  6. pkg/kubelet/kuberuntime/kuberuntime_container.go

    	"sort"
    	"strconv"
    	"strings"
    	"sync"
    	"time"
    
    	crierror "k8s.io/cri-api/pkg/errors"
    
    	"github.com/opencontainers/selinux/go-selinux"
    	grpcstatus "google.golang.org/grpc/status"
    
    	"github.com/armon/circbuf"
    	"k8s.io/klog/v2"
    
    	v1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	kubetypes "k8s.io/apimachinery/pkg/types"
    	utilruntime "k8s.io/apimachinery/pkg/util/runtime"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 54.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/AMD64.rules

    (MOVOstore [dstOff] {dstSym} ptr (MOVOload [srcOff] {srcSym} (SB) _) mem) && symIsRO(srcSym) =>
      (MOVQstore [dstOff+8] {dstSym} ptr (MOVQconst [int64(read64(srcSym, int64(srcOff)+8, config.ctxt.Arch.ByteOrder))])
        (MOVQstore [dstOff] {dstSym} ptr (MOVQconst [int64(read64(srcSym, int64(srcOff), config.ctxt.Arch.ByteOrder))]) mem))
    
    // Arch-specific inlining for small or disjoint runtime.memmove
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 93.9K bytes
    - Viewed (0)
  8. go.sum

    github.com/antlr4-go/antlr/v4 v4.13.0/go.mod h1:pfChB/xh/Unjila75QW7+VU4TSnWnnk9UTnmpPaOR2g=
    github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e h1:QEF07wC0T1rKkctt1RINW/+RMTVmiwxETico2l3gxJA=
    github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o=
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 21:47:11 UTC 2024
    - 93.1K bytes
    - Viewed (0)
  9. src/runtime/mgcmark.go

    				// Note: not necessarily really dead - only reachable-from-ptr dead.
    			}
    		}
    		x.nobj = 0
    		putempty((*workbuf)(unsafe.Pointer(x)))
    	}
    	if state.buf != nil || state.cbuf != nil || state.freeBuf != nil {
    		throw("remaining pointer buffers")
    	}
    	return int64(scannedSize)
    }
    
    // Scan a stack frame: local variables and function arguments/results.
    //
    //go:nowritebarrier
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/lib.go

    		// Check it here to be sure.
    		if lib.Fingerprint.IsZero() { // Not yet imported. Update its fingerprint.
    			lib.Fingerprint = fingerprint
    		}
    		checkFingerprint(lib, fingerprint, lib.Srcref, lib.Fingerprint)
    	}
    
    	addImports(ctxt, lib, pn)
    	return nil
    }
    
    // symbolsAreUnresolved scans through the loader's list of unresolved
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
Back to top