Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 397 for nalloc (0.1 sec)

  1. pkg/registry/core/service/portallocator/allocator.go

    	}
    	return r, nil
    }
    
    // Free returns the count of port left in the range.
    func (r *PortAllocator) Free() int {
    	return r.alloc.Free()
    }
    
    // Used returns the count of ports used in the range.
    func (r *PortAllocator) Used() int {
    	return r.portRange.Size - r.alloc.Free()
    }
    
    // Allocate attempts to reserve the provided port. ErrNotInRange or
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 07:15:02 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponse.java

        static final int SMB_FS_FULL_SIZE_INFORMATION = 1007;
    
        class SmbInfoAllocation implements AllocInfo {
            long alloc;                  // Also handles SmbQueryFSSizeInfo
            long free;
            int sectPerAlloc;
            int bytesPerSect;
    
            public long getCapacity() {
                return alloc * sectPerAlloc * bytesPerSect;
            }
            public long getFree() {
                return free * sectPerAlloc * bytesPerSect;
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 5.1K bytes
    - Viewed (0)
  3. test/fixedbugs/issue15281.go

    			println("BUG: f2: after alloc: expected delta at least 9MB, got: ", delta)
    			println(x)
    		}
    		x = nil
    		if delta := inuse() - start; delta > 1<<20 {
    			println("BUG: f2: after alloc: expected delta below 1MB, got: ", delta)
    			println(x)
    		}
    	}
    }
    
    func inuse() int64 {
    	runtime.GC()
    	var st runtime.MemStats
    	runtime.ReadMemStats(&st)
    	return int64(st.Alloc)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 17 09:45:44 UTC 2020
    - 1.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/fscc/FileFsFullSizeInformation.java

            bufferIndex += 4;
    
            return bufferIndex - start;
        }
    
    
        @Override
        public String toString () {
            return new String(
                "SmbInfoAllocation[" + "alloc=" + this.alloc + ",free=" + this.free + ",sectPerAlloc=" + this.sectPerAlloc + ",bytesPerSect="
                        + this.bytesPerSect + "]");
        }
    
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/fscc/SmbInfoAllocation.java

            bufferIndex += 4;
    
            return bufferIndex - start;
        }
    
    
        @Override
        public String toString () {
            return new String(
                "SmbInfoAllocation[" + "alloc=" + this.alloc + ",free=" + this.free + ",sectPerAlloc=" + this.sectPerAlloc + ",bytesPerSect="
                        + this.bytesPerSect + "]");
        }
    
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2.6K bytes
    - Viewed (0)
  6. src/runtime/testdata/testprogcgo/stackswitch.c

    	char *stack1 = malloc(STACK_SIZE);
    	if (stack1 == NULL) {
    		perror("malloc");
    		exit(1);
    	}
    
    	// Allocate the second stack before freeing the first to ensure we don't get
    	// the same address from malloc.
    	//
    	// Will be freed in stackSwitchThread2.
    	stack2 = malloc(STACK_SIZE);
    	if (stack1 == NULL) {
    		perror("malloc");
    		exit(1);
    	}
    
    	if (getcontext(&uctx_switch) == -1) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 26 15:17:33 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  7. test/fixedbugs/bug028.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    
    func Alloc(i int) int {
    	switch i {
    	default:
    		return 5;
    	case 1:
    		return 1;
    	case 10:
    		return 10;
    	}
    	return 0
    }
    
    func main() {
    	s := Alloc(7);
    	if s != 5 { panic("bad") }
    }
    
    /*
    bug028.go:7: unreachable statements in a switch
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:48:57 UTC 2012
    - 416 bytes
    - Viewed (0)
  8. src/runtime/testdata/testprogcgo/racesig.go

    //go:build unix
    // +build unix
    
    package main
    
    // Test that an external C thread that is calling malloc can be hit
    // with SIGCHLD signals. This used to fail when built with the race
    // detector, because in that case the signal handler would indirectly
    // call the C malloc function.
    
    /*
    #include <errno.h>
    #include <signal.h>
    #include <stdint.h>
    #include <stdio.h>
    #include <stdlib.h>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 01:46:05 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  9. src/runtime/mklockrank.go

      reflectOffs,
      timer,
      traceStrings,
      userArenaState
    # Above MALLOC are things that can allocate memory.
    < MALLOC
    # Below MALLOC is the malloc implementation.
    < fin,
      spanSetSpine,
      mspanSpecial,
      traceTypeTab,
      MPROF;
    
    # We can acquire gcBitsArenas for pinner bits, and
    # it's guarded by mspanSpecial.
    MALLOC, mspanSpecial < gcBitsArenas;
    
    # Memory profiling
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. test/fixedbugs/issue15277.go

    	if delta := inuse() - start; delta < 9<<20 {
    		println("after alloc: expected delta at least 9MB, got: ", delta)
    	}
    	runtime.KeepAlive(x)
    	x = nil
    	if delta := inuse() - start; delta > 1<<20 {
    		println("after drop: expected delta below 1MB, got: ", delta)
    	}
    	x = new(big)
    	if delta := inuse() - start; delta < 9<<20 {
    		println("second alloc: expected delta at least 9MB, got: ", delta)
    	}
    	runtime.KeepAlive(x)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 851 bytes
    - Viewed (0)
Back to top