Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 321 for sticky (0.13 sec)

  1. src/runtime/testdata/testprogcgo/stackswitch.c

    	stackSwitchCallback();
    
    	// Next, verify that switching stacks doesn't break callbacks.
    
    	char *stack1 = malloc(STACK_SIZE);
    	if (stack1 == NULL) {
    		perror("malloc");
    		exit(1);
    	}
    
    	// Allocate the second stack before freeing the first to ensure we don't get
    	// the same address from malloc.
    	//
    	// Will be freed in stackSwitchThread2.
    	stack2 = malloc(STACK_SIZE);
    	if (stack1 == NULL) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 26 15:17:33 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  2. src/cmd/vendor/github.com/google/pprof/internal/driver/html/stacks.js

      // listed in places.
      function totalValue(places) {
        const seen = new Set();
        let pos = 0;
        let neg = 0;
        for (const place of places) {
          if (seen.has(place.Stack)) continue; // Do not double-count stacks
          seen.add(place.Stack);
          const stack = stacks.Stacks[place.Stack];
          if (stack.Value < 0) {
    	neg += -stack.Value;
          } else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  3. src/bufio/bufio_test.go

    		buf := NewWriter(w)
    		_, e := buf.Write([]byte("hello world"))
    		if e != nil {
    			t.Errorf("Write hello to %v: %v", w, e)
    			continue
    		}
    		// Two flushes, to verify the error is sticky.
    		for i := 0; i < 2; i++ {
    			e = buf.Flush()
    			if e != w.expect {
    				t.Errorf("Flush %d/2 %v: got %v, wanted %v", i+1, w, e, w.expect)
    			}
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:56:01 UTC 2023
    - 51.5K bytes
    - Viewed (0)
  4. src/net/http/request.go

    type maxBytesReader struct {
    	w   ResponseWriter
    	r   io.ReadCloser // underlying reader
    	i   int64         // max bytes initially, for MaxBytesError
    	n   int64         // max bytes remaining
    	err error         // sticky error
    }
    
    func (l *maxBytesReader) Read(p []byte) (n int, err error) {
    	if l.err != nil {
    		return 0, l.err
    	}
    	if len(p) == 0 {
    		return 0, nil
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  5. src/cmd/vendor/github.com/google/pprof/internal/driver/html/stacks.html

    <!DOCTYPE html>
    <html>
    <head>
      <meta charset="utf-8">
      <title>{{.Title}}</title>
      {{template "css" .}}
      {{template "stacks_css"}}
    </head>
    <body>
      {{template "header" .}}
      <div id="stack-holder">
        <div id="stack-chart"></div>
        <div id="current-details"></div>
      </div>
      <div id="action-menu" class="submenu">
        <span id="action-title"></span>
        <hr>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 1K bytes
    - Viewed (0)
  6. src/runtime/stack.go

    	// allocation.
    	if newsize < fixedStack {
    		return
    	}
    	// Compute how much of the stack is currently in use and only
    	// shrink the stack if gp is using less than a quarter of its
    	// current stack. The currently used stack includes everything
    	// down to the SP plus the stack guard space that ensures
    	// there's room for nosplit functions.
    	avail := gp.stack.hi - gp.stack.lo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  7. src/internal/trace/testdata/testprog/stacks.go

    	defer trace.Stop() // in case of early return
    
    	// Now we will do a bunch of things for which we verify stacks later.
    	// It is impossible to ensure that a goroutine has actually blocked
    	// on a channel, in a select or otherwise. So we kick off goroutines
    	// that need to block first in the hope that while we are executing
    	// the rest of the test, they will block.
    	go func() { // func1
    		select {}
    	}()
    	go func() { // func2
    		var c chan int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/google/pprof/internal/driver/html/stacks.css

    body {
      overflow: hidden; /* Want scrollbar not here, but in #stack-holder */
    }
    /* Scrollable container for flame graph */
    #stack-holder {
      width: 100%;
      flex-grow: 1;
      overflow-y: auto;
      background: #eee; /* Light grey gives better contrast with boxes */
      position: relative; /* Allows absolute positioning of child boxes */
    }
    /* Flame graph */
    #stack-chart {
      width: 100%;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 16:39:48 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  9. test/codegen/stack.go

    // license that can be found in the LICENSE file.
    
    package codegen
    
    import "runtime"
    
    // This file contains code generation tests related to the use of the
    // stack.
    
    // Check that stack stores are optimized away.
    
    // 386:"TEXT\t.*, [$]0-"
    // amd64:"TEXT\t.*, [$]0-"
    // arm:"TEXT\t.*, [$]-4-"
    // arm64:"TEXT\t.*, [$]0-"
    // mips:"TEXT\t.*, [$]-4-"
    // ppc64x:"TEXT\t.*, [$]0-"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 21:29:41 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. src/cmd/internal/objabi/stack.go

    )
    
    func StackNosplit(race bool) int {
    	// This arithmetic must match that in runtime/stack.go:stackNosplit.
    	return abi.StackNosplitBase * stackGuardMultiplier(race)
    }
    
    // stackGuardMultiplier returns a multiplier to apply to the default
    // stack guard size. Larger multipliers are used for non-optimized
    // builds that have larger stack frames or for specific targets.
    func stackGuardMultiplier(race bool) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 19:28:56 UTC 2023
    - 904 bytes
    - Viewed (0)
Back to top