Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for clobber (0.21 sec)

  1. src/runtime/proc.go

    		}
    	}
    }
    
    // save updates getg().sched to refer to pc and sp so that a following
    // gogo will restore pc and sp.
    //
    // save must not have write barriers because invoking a write barrier
    // can clobber getg().sched.
    //
    //go:nosplit
    //go:nowritebarrierrec
    func save(pc, sp, bp uintptr) {
    	gp := getg()
    
    	if gp == gp.m.g0 || gp == gp.m.gsignal {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  2. cmd/metrics-v2.go

    		for _, mf := range mfs {
    			if err := enc.Encode(mf); err != nil {
    				// client may disconnect for any reasons
    				// we do not have to log this.
    				return
    			}
    		}
    		if closer, ok := enc.(expfmt.Closer); ok {
    			closer.Close()
    		}
    	})
    }
    
    func metricsBucketHandler() http.Handler {
    	return metricsHTTPHandler(bucketCollector, "handler.MetricsBucket")
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:54 UTC 2024
    - 131.9K bytes
    - Viewed (0)
  3. src/net/http/transport_test.go

    			t.Fatalf("for DisableKeepAlives = %v, map size = %d; want 0", disableKeep, got)
    		}
    	}
    }
    
    // Verify the status quo: that the Client.Post function coerces its
    // body into a ReadCloser if it's a Closer, and that the Transport
    // then closes it.
    func TestTransportClosesRequestBody(t *testing.T) {
    	run(t, testTransportClosesRequestBody, []testMode{http1Mode})
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  4. src/database/sql/sql.go

    	db.closed = true
    	db.connRequests.CloseAndRemoveAll()
    	db.mu.Unlock()
    	for _, fn := range fns {
    		err1 := fn()
    		if err1 != nil {
    			err = err1
    		}
    	}
    	db.stop()
    	if c, ok := db.connector.(io.Closer); ok {
    		err1 := c.Close()
    		if err1 != nil {
    			err = err1
    		}
    	}
    	return err
    }
    
    const defaultMaxIdleConns = 2
    
    func (db *DB) maxIdleConnsLocked() int {
    	n := db.maxIdleCount
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  5. src/cmd/internal/obj/arm64/asm7.go

    	}
    }
    
    // isUnsafePoint returns whether p is an unsafe point.
    func (c *ctxt7) isUnsafePoint(p *obj.Prog) bool {
    	// If p explicitly uses REGTMP, it's unsafe to preempt, because the
    	// preemption sequence clobbers REGTMP.
    	return p.From.Reg == REGTMP || p.To.Reg == REGTMP || p.Reg == REGTMP ||
    		p.From.Type == obj.TYPE_REGREG && p.From.Offset == REGTMP ||
    		p.To.Type == obj.TYPE_REGREG && p.To.Offset == REGTMP
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 201.1K bytes
    - Viewed (0)
  6. src/net/http/serve_test.go

    			if err != nil {
    				t.Errorf("On test %#v, error writing request headers: %v", test, err)
    				return
    			}
    			if writeBody {
    				var targ io.WriteCloser = struct {
    					io.Writer
    					io.Closer
    				}{
    					conn,
    					io.NopCloser(nil),
    				}
    				if test.chunked {
    					targ = httputil.NewChunkedWriter(conn)
    				}
    				body := strings.Repeat("A", test.contentLength)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
Back to top