Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SliceOS (0.17 sec)

  1. src/cmd/internal/bio/buf_nommap.go

    // Copyright 2019 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build !unix
    
    package bio
    
    func (r *Reader) sliceOS(length uint64) ([]byte, bool) {
    	return nil, false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:20:31 UTC 2024
    - 269 bytes
    - Viewed (0)
  2. src/cmd/internal/bio/buf_mmap.go

    //	OpenBSD   unlimited
    var mmapLimit int32 = 1<<31 - 1
    
    func init() {
    	// Linux is the only practically concerning OS.
    	if runtime.GOOS == "linux" {
    		mmapLimit = 30000
    	}
    }
    
    func (r *Reader) sliceOS(length uint64) ([]byte, bool) {
    	// For small slices, don't bother with the overhead of a
    	// mapping, especially since we have no way to unmap it.
    	const threshold = 16 << 10
    	if length < threshold {
    		return nil, false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:20:31 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top