Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 99 for do (0.32 sec)

  1. src/cmd/go/internal/par/work.go

    	if n < 1 {
    		panic("par.Work.Do: n < 1")
    	}
    	if w.running >= 1 {
    		panic("par.Work.Do: already called Do")
    	}
    
    	w.running = n
    	w.f = f
    	w.wait.L = &w.mu
    
    	for i := 0; i < n-1; i++ {
    		go w.runner()
    	}
    	w.runner()
    }
    
    // runner executes work in w until both nothing is left to do
    // and all the runners are waiting for work.
    // (Then all the runners return.)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 15:54:54 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. src/cmd/internal/pgo/pprof.go

    		// Treat a completely empty file the same as a profile with no
    		// samples: nothing to do.
    		return emptyProfile(), nil
    	} else if err != nil {
    		return nil, fmt.Errorf("error parsing profile: %w", err)
    	}
    
    	if len(p.Sample) == 0 {
    		// We accept empty profiles, but there is nothing to do.
    		return emptyProfile(), nil
    	}
    
    	valueIndex := -1
    	for i, s := range p.SampleType {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. src/cmd/go/internal/cache/default.go

    	"sync"
    
    	"cmd/go/internal/base"
    	"cmd/go/internal/cfg"
    	"internal/goexperiment"
    )
    
    // Default returns the default cache to use.
    // It never returns nil.
    func Default() Cache {
    	defaultOnce.Do(initDefaultCache)
    	return defaultCache
    }
    
    var (
    	defaultOnce  sync.Once
    	defaultCache Cache
    )
    
    // cacheREADME is a message stored in a README in the cache directory.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. src/cmd/asm/doc.go

    	-trimpath prefix
    		Remove prefix from recorded source file paths.
    	-v
    		Print debug output.
    
    Input language:
    
    The assembler uses mostly the same syntax for all architectures,
    the main variation having to do with addressing modes. Input is
    run through a simplified C preprocessor that implements #include,
    #define, #ifdef/endif, but not #if or ##.
    
    For more information, see https://golang.org/doc/asm.
    */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 20:46:45 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/inline/inlheur/cspropbits_string.go

    // Code generated by "stringer -bitset -type CSPropBits"; DO NOT EDIT.
    
    package inlheur
    
    import "strconv"
    import "bytes"
    
    func _() {
    	// An "invalid array index" compiler error signifies that the constant values have changed.
    	// Re-run the stringer command to generate them again.
    	var x [1]struct{}
    	_ = x[CallSiteInLoop-1]
    	_ = x[CallSiteOnPanicPath-2]
    	_ = x[CallSiteInInitFunc-4]
    }
    
    var _CSPropBits_value = [...]uint64{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 23:03:03 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/pkginit/initAsanGlobals.go

    		return false
    	}
    	if n.Sym().Pkg != types.LocalPkg {
    		return false
    	}
    	// Do not instrument any _cgo_ related global variables, because they are declared in C code.
    	if strings.Contains(n.Sym().Name, "cgo") {
    		return false
    	}
    
    	// Do not instrument globals that are linknamed, because their home package will do the work.
    	if n.Sym().Linkname != "" {
    		return false
    	}
    
    	return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 19:36:24 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  7. src/cmd/internal/obj/x86/asm_test.go

    	"os"
    	"path/filepath"
    	"regexp"
    	"testing"
    )
    
    type oclassTest struct {
    	arg  *obj.Addr
    	want int // Expected oclass return value for a given arg
    }
    
    // Filled inside init, because it's easier to do with helper functions.
    var (
    	oclassTestsAMD64 []*oclassTest
    	oclassTests386   []*oclassTest
    )
    
    func init() {
    	// Required for tests that access any of
    	// opindex/ycover/reg/regrex global tables.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 28 19:39:51 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  8. tests/non_std_test.go

    	var animals []Animal
    	DB.Find(&animals)
    	if count := DB.Model(Animal{}).Where("1=1").Update("CreatedAt", time.Now().Add(2*time.Hour)).RowsAffected; count != int64(len(animals)) {
    		t.Error("RowsAffected should be correct when do batch update")
    	}
    
    	animal = Animal{From: "somewhere"}              // No name fields, should be filled with the default value (galeone)
    	DB.Save(&animal).Update("From", "a nice place") // The name field should be untouched
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  9. src/cmd/internal/obj/riscv/anames.go

    // Code generated by stringer -i cpu.go -o anames.go -p riscv; DO NOT EDIT.
    
    package riscv
    
    import "cmd/internal/obj"
    
    var Anames = []string{
    	obj.A_ARCHSPECIFIC: "ADDI",
    	"SLTI",
    	"SLTIU",
    	"ANDI",
    	"ORI",
    	"XORI",
    	"SLLI",
    	"SRLI",
    	"SRAI",
    	"LUI",
    	"AUIPC",
    	"ADD",
    	"SLT",
    	"SLTU",
    	"AND",
    	"OR",
    	"XOR",
    	"SLL",
    	"SRL",
    	"SUB",
    	"SRA",
    	"JAL",
    	"JALR",
    	"BEQ",
    	"BNE",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 14:19:33 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. src/cmd/dist/buildruntime.go

    //	const defaultGOARCH = runtime.GOARCH
    //
    // The use of runtime.GOOS and runtime.GOARCH makes sure that
    // a cross-compiled compiler expects to compile for its own target
    // system. That is, if on a Mac you do:
    //
    //	GOOS=linux GOARCH=ppc64 go build cmd/compile
    //
    // the resulting compiler will default to generating linux/ppc64 object files.
    // This is more useful than having it default to generating objects for the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 01:33:19 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top