Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for capmem (0.21 sec)

  1. cmd/metrics-v2.go

    				return
    			}
    		}
    		if closer, ok := enc.(expfmt.Closer); ok {
    			closer.Close()
    		}
    	})
    }
    
    func toSnake(camel string) (snake string) {
    	var b strings.Builder
    	l := len(camel)
    	for i, v := range camel {
    		// A is 65, a is 97
    		if v >= 'a' {
    			b.WriteRune(v)
    			continue
    		}
    		// v is capital letter here
    		// disregard first letter
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:54 UTC 2024
    - 131.9K bytes
    - Viewed (0)
  2. src/database/sql/sql.go

    	dc.db.numOpen--
    	dc.db.maybeOpenNewConnections()
    	dc.db.mu.Unlock()
    
    	dc.db.numClosed.Add(1)
    	return err
    }
    
    // driverStmt associates a driver.Stmt with the
    // *driverConn from which it came, so the driverConn's lock can be
    // held during calls.
    type driverStmt struct {
    	sync.Locker // the *driverConn
    	si          driver.Stmt
    	closed      bool
    	closeErr    error // return value of previous Close call
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  3. src/cmd/go/internal/load/pkg.go

    	}
    	return r
    }
    
    // Mode flags for loadImport and download (in get.go).
    const (
    	// ResolveImport means that loadImport should do import path expansion.
    	// That is, ResolveImport means that the import path came from
    	// a source file and has not been expanded yet to account for
    	// vendoring or possible module adjustment.
    	// Every import path should be loaded initially with ResolveImport,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  4. src/runtime/proc.go

    	// that has profiling enabled.
    	gp := getg()
    	gp.m.locks++
    
    	// Stop profiler on this thread so that it is safe to lock prof.
    	// if a profiling signal came in while we had prof locked,
    	// it would deadlock.
    	setThreadCPUProfiler(0)
    
    	for !prof.signalLock.CompareAndSwap(0, 1) {
    		osyield()
    	}
    	if prof.hz.Load() != hz {
    		setProcessCPUProfiler(hz)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  5. src/reflect/all_test.go

    // an interface requires dereferencing the itab word, the misinterpretation will try to
    // deference Inner.P1, causing a crash during garbage collection.
    //
    // This came up in a real program in issue 7725.
    
    type Outer struct {
    	*Inner
    	R io.Reader
    }
    
    type Inner struct {
    	X  *Outer
    	P1 uintptr
    	P2 uintptr
    }
    
    func (pi *Inner) M() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top