Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 76 for isopen (0.58 sec)

  1. src/cmd/compile/internal/ssa/poset.go

    					} else {
    						open = append(open, l.Target())
    					}
    				}
    				if r != 0 {
    					if r.Strict() {
    						next = append(next, r.Target())
    					} else {
    						open = append(open, r.Target())
    					}
    				}
    			}
    		}
    		open = next
    		closed.Reset()
    	}
    
    	for len(open) > 0 {
    		i := open[len(open)-1]
    		open = open[:len(open)-1]
    
    		if !closed.Test(i) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 04 17:23:05 UTC 2023
    - 37.2K bytes
    - Viewed (0)
  2. src/cmd/go/internal/cache/cache.go

    // in a network file system). File locking is notoriously unreliable in
    // network file systems and may not suffice to protect the cache.
    func Open(dir string) (*DiskCache, error) {
    	info, err := os.Stat(dir)
    	if err != nil {
    		return nil, err
    	}
    	if !info.IsDir() {
    		return nil, &fs.PathError{Op: "open", Path: dir, Err: fmt.Errorf("not a directory")}
    	}
    	for i := 0; i < 256; i++ {
    		name := filepath.Join(dir, fmt.Sprintf("%02x", i))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 14:19:39 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/test/pgo_inl_test.go

    			t.Fatalf("error copying %s : %v", file, err)
    		}
    	}
    
    	// Add some comments to the top of inline_hot.go. This adjusts the line
    	// numbers of all of the functions without changing the semantics.
    	src, err := os.Open(filepath.Join(srcDir, "inline_hot.go"))
    	if err != nil {
    		t.Fatalf("error opening src inline_hot.go: %v", err)
    	}
    	defer src.Close()
    
    	dst, err := os.Create(filepath.Join(dir, "inline_hot.go"))
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testcshared/cshared_test.go

    	out, err := exec.Command("go", argv...).CombinedOutput()
    	if err != nil {
    		t.Fatalf("build failure: %s\n%s\n", err, string(out))
    	}
    
    	f, err := pe.Open(objfile)
    	if err != nil {
    		t.Fatalf("pe.Open failed: %v", err)
    	}
    	defer f.Close()
    	section := f.Section(".edata")
    	if section == nil {
    		t.Skip(".edata section is not present")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 21K bytes
    - Viewed (0)
  5. src/cmd/go/internal/cache/default.go

    	}
    	if _, err := os.Stat(filepath.Join(dir, "README")); err != nil {
    		// Best effort.
    		os.WriteFile(filepath.Join(dir, "README"), []byte(cacheREADME), 0666)
    	}
    
    	diskCache, err := Open(dir)
    	if err != nil {
    		base.Fatalf("failed to initialize build cache at %s: %s\n", dir, err)
    	}
    
    	if v := cfg.Getenv("GOCACHEPROG"); v != "" && goexperiment.CacheProg {
    		defaultCache = startCacheProg(v, diskCache)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssagen/pgen.go

    		return a.Type().Alignment() > b.Type().Alignment()
    	}
    
    	// Sort normal variables before open-coded-defer slots, so that the
    	// latter are grouped together and near the top of the frame (to
    	// minimize varint encoding of their varp offset).
    	if a.OpenDeferSlot() != b.OpenDeferSlot() {
    		return a.OpenDeferSlot()
    	}
    
    	// If a and b are both open-coded defer slots, then order them by
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/errorcalls_test.go

    	var stack []byte
    	for _, ch := range s {
    		var open byte
    		switch ch {
    		case '(', '[', '{':
    			stack = append(stack, byte(ch))
    			continue
    		case ')':
    			open = '('
    		case ']':
    			open = '['
    		case '}':
    			open = '{'
    		default:
    			continue
    		}
    		// closing parenthesis/bracket must have matching opening
    		top := len(stack) - 1
    		if top < 0 || stack[top] != open {
    			return false
    		}
    		stack = stack[:top]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 21:57:36 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/noder/noder.go

    	"cmd/compile/internal/typecheck"
    	"cmd/compile/internal/types"
    	"cmd/internal/objabi"
    )
    
    func LoadPackage(filenames []string) {
    	base.Timer.Start("fe", "parse")
    
    	// Limit the number of simultaneously open files.
    	sem := make(chan struct{}, runtime.GOMAXPROCS(0)+10)
    
    	noders := make([]*noder, len(filenames))
    	for i := range noders {
    		p := noder{
    			err: make(chan syntax.Error),
    		}
    		noders[i] = &p
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 11 20:40:57 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  9. src/cmd/go/internal/work/cover.go

    		pred := runAct.Deps[i]
    		if pred.Mode != "build" || pred.Package == nil {
    			continue
    		}
    		if pred.Package.ImportPath == p.ImportPath {
    			metaFile := pred.Objdir + covcmd.MetaFileForPackage(p.ImportPath)
    			f, err := os.Open(metaFile)
    			if err != nil {
    				return "", err
    			}
    			defer f.Close()
    			fi, err2 := f.Stat()
    			if err2 != nil {
    				return "", err2
    			}
    			if fi.Size() == 0 {
    				return "", nil
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 19:09:38 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  10. src/cmd/go/internal/work/action.go

    // .go_export section.
    func readpkglist(shlibpath string) (pkgs []*load.Package) {
    	var stk load.ImportStack
    	if cfg.BuildToolchainName == "gccgo" {
    		f, err := elf.Open(shlibpath)
    		if err != nil {
    			base.Fatal(fmt.Errorf("failed to open shared library: %v", err))
    		}
    		defer f.Close()
    		sect := f.Section(".go_export")
    		if sect == nil {
    			base.Fatal(fmt.Errorf("%s: missing .go_export section", shlibpath))
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:39:17 UTC 2024
    - 32.7K bytes
    - Viewed (0)
Back to top