Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 418 for Allocate (0.12 sec)

  1. src/main/java/org/codelibs/core/io/FileUtil.java

            final FileInputStream is = InputStreamUtil.create(file);
            try {
                final FileChannel channel = is.getChannel();
                final ByteBuffer buffer = ByteBuffer.allocate((int) ChannelUtil.size(channel));
                ChannelUtil.read(channel, buffer);
                return buffer.array();
            } finally {
                CloseableUtil.close(is);
            }
        }
    
        /**
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cached_token_authenticator.go

    		defer func() {
    			if r := recover(); r != nil {
    				// make sure to always return a record
    				record.err = errAuthnCrash
    				val = record
    
    				// Same as stdlib http server code. Manually allocate stack
    				// trace buffer size to prevent excessively large logs
    				const size = 64 << 10
    				buf := make([]byte, size)
    				buf = buf[:runtime.Stack(buf, false)]
    				klog.Errorf("%v\n%s", r, buf)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/fuse.go

    			totalBeforeMax = total
    			max_b = bx
    		}
    		total += len(bx.Values)
    		if bx == c {
    			break
    		}
    	}
    
    	// Use c's storage if fused blocks will fit, else use the max if that will fit, else allocate new storage.
    
    	// Take care to avoid c.Values pointing to b.valstorage.
    	// See golang.org/issue/18602.
    
    	// It's important to keep the elements in the same order; maintenance of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:45:54 UTC 2023
    - 9K bytes
    - Viewed (0)
  4. src/net/http/httputil/dump.go

    		pw.Close()
    		dr.err = err
    		close(quitReadCh)
    		return nil, err
    	}
    	dump := buf.Bytes()
    
    	// If we used a dummy body above, remove it now.
    	// TODO: if the req.ContentLength is large, we allocate memory
    	// unnecessarily just to slice it off here. But this is just
    	// a debug function, so this is acceptable for now. We could
    	// discard the body earlier if this matters.
    	if dummyBody {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  5. src/runtime/sys_freebsd_386.s

    	MOVB	$0xCF, 6(AX)	// 32-bit operand, 4k limit unit, 4 more bits of limit
    
    	MOVB	$0xF2, 5(AX)	// r/w data descriptor, dpl=3, present
    
    	// call i386_set_ldt(entry, desc, 1)
    	MOVL	$0xffffffff, 0(SP)	// auto-allocate entry and return in AX
    	MOVL	AX, 4(SP)
    	MOVL	$1, 8(SP)
    	CALL	i386_set_ldt<>(SB)
    
    	// compute segment selector - (entry*8+7)
    	SHLL	$3, AX
    	ADDL	$7, AX
    	MOVW	AX, GS
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  6. src/cmd/link/internal/ld/outbuf_darwin.go

    func (out *OutBuf) fallocate(size uint64) error {
    	stat, err := out.f.Stat()
    	if err != nil {
    		return err
    	}
    	// F_PEOFPOSMODE allocates from the end of the file, so we want the size difference.
    	// Apparently, it uses the end of the allocation, instead of the logical end of the
    	// file.
    	cursize := uint64(stat.Sys().(*syscall.Stat_t).Blocks * 512) // allocated size
    	if size <= cursize {
    		return nil
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 13 15:50:02 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/internal/build/DefaultBuildToolingModelController.java

            }
            // Force configuration of the containing build and then locate the builder for target project
            buildController.configureProjects();
            return doLocate(target, modelName, param);
        }
    
        private ToolingModelScope doLocate(ProjectState target, String modelName, boolean param) {
            return new ProjectToolingScope(target, modelName, param);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 07 17:25:08 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  8. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/tasks/UnexportMainSymbol.java

        private final ConfigurableFileCollection source = getProject().files();
        private final DirectoryProperty outputDirectory = getProject().getObjects().directoryProperty();
    
        /**
         * The object files to relocate.
         *
         * @since 4.5
         */
        @InputFiles
        @SkipWhenEmpty
        @IgnoreEmptyDirectories
        @PathSensitive(PathSensitivity.NAME_ONLY)
        public ConfigurableFileCollection getObjects() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  9. test/fixedbugs/notinheap2.go

    func g() {
    	y = new(nih)              // ERROR "can't be allocated in Go"
    	y2 = new(struct{ x nih }) // ERROR "can't be allocated in Go"
    	y3 = new([1]nih)          // ERROR "can't be allocated in Go"
    	z = make([]nih, 1)        // ERROR "can't be allocated in Go"
    	z = append(z, x)          // ERROR "can't be allocated in Go"
    
    	sink = new(embed1)      // ERROR "can't be allocated in Go"
    	sink = new(embed2)      // ERROR "can't be allocated in Go"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 17:46:15 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  10. src/runtime/testdata/testprogcgo/cgonoescape.go

    // We assume that there won't be 100 new allocated heap objects in other places,
    // i.e. runtime.ReadMemStats or other runtime background works.
    // So, the tests are:
    // 1. at least 100 new allocated heap objects after invoking withoutNoEscape 100 times.
    // 2. less than 100 new allocated heap objects after invoking withoutNoEscape 100 times.
    
    /*
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 16:43:23 UTC 2023
    - 1.8K bytes
    - Viewed (0)
Back to top