Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 266 for nproc (0.03 sec)

  1. platforms/jvm/language-java/src/test/groovy/org/gradle/api/internal/tasks/compile/AnnotationProcessingCompileTaskTest.groovy

        @Issue("gradle/gradle#8996")
        def "stacktrace contains root cause"() {
            given:
            def proc = new AnnotationProcessorDeclaration(processorClassName, IncrementalAnnotationProcessorType.UNKNOWN)
            def processTask = createProcessingTask(proc)
    
            when:
            processTask.call()
    
            then:
            def e = thrown(Throwable)
            def root = Throwables.getRootCause(e)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  2. src/syscall/exec_unix_test.go

    	c.pipe.Close()
    	if err := c.proc.Wait(); err != nil {
    		c.test.Fatal(err)
    	}
    }
    
    func create(t *testing.T) *command {
    	testenv.MustHaveExec(t)
    
    	proc := exec.Command("cat")
    	stdin, err := proc.StdinPipe()
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	return &command{stdin, proc, t}
    }
    
    func parent() (pid, pgrp int) {
    	return syscall.Getpid(), syscall.Getpgrp()
    }
    
    func TestZeroSysProcAttr(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 04:41:27 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  3. pkg/kubelet/stats/pidlimit/pidlimit_linux.go

    	// Example: 1.36 3.49 4.53 2/3518 3715089
    	bytes, err := os.ReadFile("/proc/loadavg")
    	if err != nil {
    		return 0, err
    	}
    	fields := strings.Fields(string(bytes))
    	if len(fields) < 5 {
    		return 0, fmt.Errorf("not enough fields in /proc/loadavg")
    	}
    	subfields := strings.Split(fields[3], "/")
    	if len(subfields) != 2 {
    		return 0, fmt.Errorf("error parsing fourth field of /proc/loadavg")
    	}
    	return strconv.ParseInt(subfields[1], 10, 64)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Sep 17 09:24:29 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  4. src/crypto/x509/pem_decrypt_test.go

    		}
    		if block.Type != "RSA PRIVATE KEY" {
    			t.Errorf("unexpected block type; got %q want %q", block.Type, "RSA PRIVATE KEY")
    		}
    		if block.Headers["Proc-Type"] != "4,ENCRYPTED" {
    			t.Errorf("block does not have correct Proc-Type header")
    		}
    		der, err := DecryptPEMBlock(block, password)
    		if err != nil {
    			t.Error("decrypt: ", err)
    			continue
    		}
    		if !bytes.Equal(der, plainDER) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 20:03:55 UTC 2019
    - 8.9K bytes
    - Viewed (0)
  5. src/internal/trace/testdata/generators/go122-syscall-steal-proc-gen-boundary-reacquire-new-proc.go

    Michael Anthony Knyszek <******@****.***> 1716583527 +0000
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  6. platforms/core-runtime/process-services/src/main/java/org/gradle/process/internal/health/memory/MemInfoOsMemoryInfo.java

    public class MemInfoOsMemoryInfo implements OsMemoryInfo {
        // /proc/meminfo is in kB since Linux 4.0, see https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/fs/proc/task_mmu.c?id=39a8804455fb23f09157341d3ba7db6d7ae6ee76#n22
        private static final Pattern MEMINFO_LINE_PATTERN = Pattern.compile("^\\D+(\\d+) kB$");
        private static final String MEMINFO_FILE_PATH = "/proc/meminfo";
    
        private final Matcher meminfoMatcher;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:10:02 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  7. src/runtime/testdata/testwintls/main.c

        for (int i = 0; i < 65; i++) {
            TlsAlloc();
        }
        HMODULE hlib = LoadLibrary(argv[1]);
        if (hlib == NULL) {
            return 2;
        }
        FARPROC proc = GetProcAddress(hlib, argv[2]);
        if (proc == NULL) {
            return 3;
        }
        if (proc() != 42) {
            return 4;
        }
        return 0;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 25 15:37:00 UTC 2023
    - 692 bytes
    - Viewed (0)
  8. src/internal/trace/testdata/tests/go122-syscall-steal-proc-gen-boundary-reacquire-new-proc.test

    Carlos Amedee <******@****.***> 1715265901 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 556 bytes
    - Viewed (0)
  9. src/internal/trace/testdata/tests/go122-syscall-steal-proc-reacquire-new-proc-bare-m.test

    Carlos Amedee <******@****.***> 1715265901 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 529 bytes
    - Viewed (0)
  10. src/cmd/trace/threadgen.go

    		}
    	}
    
    	type procArg struct {
    		Proc uint64 `json:"proc,omitempty"`
    	}
    	st := ev.StateTransition()
    	viewerEv := traceviewer.InstantEvent{
    		Resource: uint64(ev.Thread()),
    		Stack:    ctx.Stack(viewerFrames(ev.Stack())),
    		Arg:      procArg{Proc: uint64(st.Resource.Proc())},
    	}
    
    	from, to := st.Proc()
    	if from == to {
    		// Filter out no-op events.
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top