Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for nproc (0.1 sec)

  1. src/runtime/mgc.go

    			trackLimiterEvent = pp.limiterEvent.start(limiterEventIdleMarkWork, startTime)
    		}
    
    		decnwait := atomic.Xadd(&work.nwait, -1)
    		if decnwait == work.nproc {
    			println("runtime: work.nwait=", decnwait, "work.nproc=", work.nproc)
    			throw("work.nwait was > work.nproc")
    		}
    
    		systemstack(func() {
    			// Mark our goroutine preemptible so its stack
    			// can be scanned. This lets two mark workers
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
  2. src/runtime/mgcmark.go

    	// signal a completion point.
    	incnwait := atomic.Xadd(&work.nwait, +1)
    	if incnwait > work.nproc {
    		println("runtime: work.nwait=", incnwait,
    			"work.nproc=", work.nproc)
    		throw("work.nwait > work.nproc")
    	}
    
    	if incnwait == work.nproc && !gcMarkWorkAvailable(nil) {
    		// This has reached a background completion point. Set
    		// gp.param to a non-nil value to indicate this. It
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  3. src/internal/trace/order.go

    		return fmt.Errorf("expected no thread but had one")
    	}
    
    	// Check proc requirements.
    	if reqs.Proc == event.MustHave && ctx.P == NoProc {
    		return fmt.Errorf("expected a proc but didn't have one")
    	} else if reqs.Proc == event.MustNotHave && ctx.P != NoProc {
    		return fmt.Errorf("expected no proc but had one")
    	}
    
    	// Check goroutine requirements.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go

    // function from module by ordinal.
    func GetProcAddressByOrdinal(module Handle, ordinal uintptr) (proc uintptr, err error) {
    	r0, _, e1 := syscall.Syscall(procGetProcAddress.Addr(), 2, uintptr(module), ordinal, 0)
    	proc = uintptr(r0)
    	if proc == 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    func Exit(code int) { ExitProcess(uint32(code)) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  5. src/syscall/zsyscall_windows.go

    func GetProcAddress(module Handle, procname string) (proc uintptr, err error) {
    	var _p0 *byte
    	_p0, err = BytePtrFromString(procname)
    	if err != nil {
    		return
    	}
    	return _GetProcAddress(module, _p0)
    }
    
    func _GetProcAddress(module Handle, procname *byte) (proc uintptr, err error) {
    	r0, _, e1 := Syscall(procGetProcAddress.Addr(), 2, uintptr(module), uintptr(unsafe.Pointer(procname)), 0)
    	proc = uintptr(r0)
    	if proc == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 56.3K bytes
    - Viewed (0)
  6. configure.py

      if not paths:
        raise FileNotFoundError(
            "Can't find 'find_cuda_config.py' script inside working directory")
      proc = subprocess.Popen(
          [environ_cp['PYTHON_BIN_PATH'], paths[0]] + cuda_libraries,
          stdout=subprocess.PIPE,
          env=maybe_encode_env(environ_cp))
    
      if proc.wait():
        # Errors from find_cuda_config.py were sent to stderr.
        print('Asking for detailed CUDA configuration...\n')
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 10 04:32:44 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  7. src/os/os_test.go

    func TestReadFileProc(t *testing.T) {
    	t.Parallel()
    
    	// Linux files in /proc report 0 size,
    	// but then if ReadFile reads just a single byte at offset 0,
    	// the read at offset 1 returns EOF instead of more data.
    	// ReadFile has a minimum read size of 512 to work around this,
    	// but test explicitly that it's working.
    	name := "/proc/sys/fs/pipe-max-size"
    	if _, err := Stat(name); err != nil {
    		t.Skip(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  8. src/encoding/xml/marshal_test.go

    }, {
    	desc: "proc instruction",
    	toks: []Token{
    		ProcInst{"Target", []byte("Instruction")},
    	},
    	want: `<?Target Instruction?>`,
    }, {
    	desc: "proc instruction with empty target",
    	toks: []Token{
    		ProcInst{"", []byte("Instruction")},
    	},
    	err: "xml: EncodeToken of ProcInst with invalid Target",
    }, {
    	desc: "proc instruction with bad content",
    	toks: []Token{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 66K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/dwarf.go

    		// We can't use something that may be dead-code
    		// eliminated from a binary here. proc.go contains
    		// main and the scheduler, so it's not going anywhere.
    		if i := strings.Index(name, "runtime/proc.go"); i >= 0 && unit.Lib.Pkg == "runtime" {
    			d.dwmu.Lock()
    			if gdbscript == "" {
    				k := strings.Index(name, "runtime/proc.go")
    				gdbscript = name[:k] + "runtime/runtime-gdb.py"
    			}
    			d.dwmu.Unlock()
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  10. hack/local-up-cluster.sh

      if [ $? == "1" ]; then
        echo "time out on waiting for coredns deployment"
        exit 1
      fi
    
      # bump log level
      echo "6" | sudo tee /proc/sys/kernel/printk
    
      # loop through and grab all things in dmesg
      dmesg > "${LOG_DIR}/dmesg.log"
      dmesg -w --human >> "${LOG_DIR}/dmesg.log" &
    }
    
    function start_kubelet {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 25 02:33:52 UTC 2024
    - 53.3K bytes
    - Viewed (0)
Back to top