Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,826 for chunck (0.13 sec)

  1. src/runtime/mpagealloc.go

    	if sc == ec {
    		// The range doesn't cross any chunk boundaries.
    		chunk := p.chunkOf(sc)
    		scav += chunk.scavenged.popcntRange(si, ei+1-si)
    		chunk.allocRange(si, ei+1-si)
    		p.scav.index.alloc(sc, ei+1-si)
    	} else {
    		// The range crosses at least one chunk boundary.
    		chunk := p.chunkOf(sc)
    		scav += chunk.scavenged.popcntRange(si, pallocChunkPages-si)
    		chunk.allocRange(si, pallocChunkPages-si)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  2. src/go/types/check.go

    // The provided files must all belong to the same package.
    func (check *Checker) initFiles(files []*ast.File) {
    	// start with a clean slate (check.Files may be called multiple times)
    	check.files = nil
    	check.imports = nil
    	check.dotImportMap = nil
    
    	check.firstErr = nil
    	check.methods = nil
    	check.untyped = nil
    	check.delayed = nil
    	check.objPath = nil
    	check.cleaners = nil
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/check.go

    // The provided files must all belong to the same package.
    func (check *Checker) initFiles(files []*syntax.File) {
    	// start with a clean slate (check.Files may be called multiple times)
    	check.files = nil
    	check.imports = nil
    	check.dotImportMap = nil
    
    	check.firstErr = nil
    	check.methods = nil
    	check.untyped = nil
    	check.delayed = nil
    	check.objPath = nil
    	check.cleaners = nil
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/check.go

    }
    
    // isExactFloat32 reports whether x can be exactly represented as a float32.
    func isExactFloat32(x float64) bool {
    	// Check the mantissa is in range.
    	if bits.TrailingZeros64(math.Float64bits(x)) < 52-23 {
    		return false
    	}
    	// Check the exponent is in range. The mantissa check above is sufficient for NaN values.
    	return math.IsNaN(x) || x == float64(float32(x))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 16:41:23 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  5. src/encoding/base32/base32_test.go

    			{"MZXW", "6YTB"},
    			{"MZXW", "6Y", "TB"},
    		}, nil},
    	}
    
    	for _, testcase := range testcases {
    		for _, chunks := range testcase.chunkCombinations {
    			pr, pw := io.Pipe()
    
    			// Write the encoded chunks into the pipe
    			go func() {
    				for _, chunk := range chunks {
    					pw.Write([]byte(chunk))
    				}
    				pw.Close()
    			}()
    
    			decoder := NewDecoder(StdEncoding, pr)
    			_, err := io.ReadAll(decoder)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 16:25:54 UTC 2024
    - 26K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

          closed = true
          detachTimeout(timeout)
          state = STATE_READ_RESPONSE_HEADERS
        }
      }
    
      /**
       * An HTTP body with alternating chunk sizes and chunk bodies. It is the caller's responsibility
       * to buffer chunks; typically by using a buffered sink with this sink.
       */
      private inner class ChunkedSink : Sink {
        private val timeout = ForwardingTimeout(sink.timeout())
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  7. platforms/core-runtime/io/src/test/groovy/org/gradle/internal/io/StreamByteBufferTest.groovy

                position += partsize
                bytesLeft -= partsize
                if (bytesLeft < partsize) {
                    partsize = bytesLeft
                }
            }
        }
    
        def "returns chunk size in range"() {
            given:
            def defaultChunkSize = StreamByteBuffer.DEFAULT_CHUNK_SIZE
            def maxChunkSize = StreamByteBuffer.MAX_CHUNK_SIZE
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 13:06:08 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  8. src/compress/flate/inflate.go

    			for off := reverse; off < len(h.chunks); off += 1 << uint(n) {
    				// We should never need to overwrite
    				// an existing chunk. Also, 0 is
    				// never a valid chunk, because the
    				// lower 4 "count" bits should be
    				// between 1 and 15.
    				if sanity && h.chunks[off] != 0 {
    					panic("impossible: overwriting existing chunk")
    				}
    				h.chunks[off] = chunk
    			}
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 23:20:03 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  9. src/runtime/arena.go

    // arena chunks. That is, they can never be used for the general heap. Each chunk
    // is also represented by a single mspan, and is modeled as a single large heap
    // allocation. It must be, because each chunk contains ordinary Go values that may
    // point into the heap, so it must be scanned just like any other object. Any
    // pointer into a chunk will therefore always cause the whole chunk to be scanned
    // while its corresponding arena is still live.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:44:56 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  10. src/runtime/malloc_test.go

    	}
    	const N = 16
    	var v [N]unsafe.Pointer
    	for i := range v {
    		v[i] = unsafe.Pointer(new(byte))
    	}
    
    	chunks := make(map[uintptr]bool, N)
    	for _, p := range v {
    		chunks[uintptr(p)&^7] = true
    	}
    
    	if len(chunks) == N {
    		t.Fatal("no bytes allocated within the same 8-byte chunk")
    	}
    }
    
    type obj12 struct {
    	a uint64
    	b uint32
    }
    
    func TestTinyAllocIssue37262(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 10.6K bytes
    - Viewed (0)
Back to top