Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for max_memory (0.32 sec)

  1. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/server/health/LowMemoryDaemonExpirationStrategyTest.groovy

        private static final long MAX_MEMORY = 16 * ONE_GIG
        private final OsMemoryStatus mockMemoryStatus = Mock(OsMemoryStatus)
    
        def "minimum threshold is enforced"() {
            given:
            def expirationStrategy = new LowMemoryDaemonExpirationStrategy(0)
    
            when:
            1 * mockMemoryStatus.physicalMemory >> { new DefaultAvailableOsMemoryStatusAspect("physical", MAX_MEMORY, ONE_GIG) }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/native-binaries/sourceset-variant/groovy/src/main/windows/platform-windows.c

    #include "platform.h"
    
    const char* platform_name = "Windows";
    
    int max_path_length() { return 260; }
    
    // 640K ought to be enough for anybody.
    unsigned long long max_memory() { return KB(640); }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 229 bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/native-binaries/sourceset-variant/groovy/src/main/linux/platform-linux.c

    #include "platform.h"
    
    const char* platform_name = "Linux";
    
    int max_path_length() { return -1; }
    
    unsigned long long max_memory() { return TB(128); }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 186 bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/native-binaries/sourceset-variant/groovy/src/main/mac/platform-mac.c

    #include "platform.h"
    
    const char* platform_name = "MacOSX";
    
    int max_path_length() { return 1024; }
    
    unsigned long long max_memory() { return GB(96); }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 188 bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/native-binaries/sourceset-variant/groovy/src/main/c/main.c

      printf("Is Posix like?        %s\n", is_posix_like()?"true":"false");
      printf("Max Path Length:      %d bytes\n", max_path_length());
      printf("Max memory supported: %llu Kbytes\n", max_memory());
      return 0;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 348 bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/native-binaries/sourceset-variant/groovy/src/main/headers/platform.h

    #ifndef PLATFORM_H
    #define PLATFORM_H
    
    extern const char* platform_name;
    
    int max_path_length();
    
    unsigned long long max_memory();
    
    int is_posix_like();
    
    #define KB(x) x
    #define MB(x) KB(x)*1024
    #define GB(x) MB(x)*1024
    #define TB(x) GB(x)*1024
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 267 bytes
    - Viewed (0)
  7. src/mime/multipart/formdata_test.go

    	// Try parsing the form with increasing maxMemory values.
    	// Changes in how we account for non-file form data may cause the exact point
    	// where we change from rejecting the form as too large to accepting it to vary,
    	// but we should see both successes and failures.
    	const failWhenMaxMemoryLessThan = 128
    	for maxMemory := int64(0); maxMemory < failWhenMaxMemoryLessThan*2; maxMemory += 16 {
    		b := strings.NewReader(testBody)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 05 18:31:56 UTC 2024
    - 14K bytes
    - Viewed (0)
  8. platforms/jvm/language-java/src/main/java/org/gradle/api/tasks/javadoc/Javadoc.java

         */
        @Internal
        @Nullable
        public String getMaxMemory() {
            return maxMemory;
        }
    
        /**
         * Sets the amount of memory allocated to this task.
         *
         * @param maxMemory The amount of memory
         */
        public void setMaxMemory(String maxMemory) {
            this.maxMemory = maxMemory;
        }
    
        /**
         * <p>Returns the title for the generated documentation.</p>
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 13.6K bytes
    - Viewed (0)
  9. src/mime/multipart/formdata.go

    	// unconfigurable 10 MB added on to maxMemory, is unfortunate but difficult to change
    	// within the constraints of the API as documented.
    	maxFileMemoryBytes := maxMemory
    	if maxFileMemoryBytes == math.MaxInt64 {
    		maxFileMemoryBytes--
    	}
    	maxMemoryBytes := maxMemory + int64(10<<20)
    	if maxMemoryBytes <= 0 {
    		if maxMemory < 0 {
    			maxMemoryBytes = 0
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 16:12:35 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  10. platforms/jvm/scala/src/test/groovy/org/gradle/api/tasks/scala/ScalaDocSpec.groovy

        }
    
        @Override
        ScalaDoc getTask() {
            return scalaDoc
        }
    
        def "test ScalaDoc maxMemory"() {
            expect:
            scalaDoc.maxMemory.set('1G')
            scalaDoc.maxMemory.get() == '1G'
        }
    
        def "test Scala Includes"() {
            expect:
            scalaDoc.include(TEST_PATTERN_1, TEST_PATTERN_2) == scalaDoc
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 2.2K bytes
    - Viewed (0)
Back to top