Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 366 for chunkOf (0.12 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/runtime/mpagecache.go

    	// any known chunk, then we know we're out of memory.
    	if chunkIndex(p.searchAddr.addr()) >= p.end {
    		return pageCache{}
    	}
    	c := pageCache{}
    	ci := chunkIndex(p.searchAddr.addr()) // chunk index
    	var chunk *pallocData
    	if p.summary[len(p.summary)-1][ci] != 0 {
    		// Fast path: there's free pages at or near the searchAddr address.
    		chunk = p.chunkOf(ci)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 19 14:30:00 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  3. src/runtime/mgcscavenge.go

    // memory available to scavenge.
    type scavengeIndex struct {
    	// chunks is a scavChunkData-per-chunk structure that indicates the presence of pages
    	// available for scavenging. Updates to the index are serialized by the pageAlloc lock.
    	//
    	// It tracks chunk occupancy and a generation counter per chunk. If a chunk's occupancy
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:48:45 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  4. src/runtime/export_test.go

    	testSysStat.add(-int64(p.summaryMappedReady))
    
    	// Free the mapped space for chunks.
    	for i := range p.chunks {
    		if x := p.chunks[i]; x != nil {
    			p.chunks[i] = nil
    			// This memory comes from sysAlloc and will always be page-aligned.
    			sysFree(unsafe.Pointer(x), unsafe.Sizeof(*p.chunks[0]), testSysStat)
    		}
    	}
    }
    
    // BaseChunkIdx is a convenient chunkIdx value which works on both
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  5. src/net/http/internal/chunked.go

    }
    
    type chunkedReader struct {
    	r        *bufio.Reader
    	n        uint64 // unread bytes in chunk
    	err      error
    	buf      [2]byte
    	checkEnd bool  // whether need to check for \r\n chunk footer
    	excess   int64 // "excessive" chunk overhead, for malicious sender detection
    }
    
    func (cr *chunkedReader) beginChunk() {
    	// chunk-size CRLF
    	var line []byte
    	line, cr.err = readChunkLine(cr.r)
    	if cr.err != nil {
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  6. src/net/http/internal/chunked_test.go

    	chunk := []byte("1;")
    	for i := 0; i < 100; i++ {
    		chunk = append(chunk, 'a') // chunk extension
    	}
    	chunk = append(chunk, "\r\nX\r\n"...)
    	const bodylen = 1 << 20
    	r := NewChunkedReader(&funcReader{f: func(i int) ([]byte, error) {
    		if i < bodylen {
    			return chunk, nil
    		}
    		return []byte("0\r\n"), nil
    	}})
    	_, err := io.ReadAll(r)
    	if err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 04 20:45:19 UTC 2024
    - 8K bytes
    - Viewed (0)
  7. src/runtime/mpagealloc_test.go

    		// first chunk do not exhaust the heap and the second chunk's summary is not in the
    		// page immediately adjacent to the first chunk's summary's page.
    		// Allocating into this first chunk to exhaustion and then into the second
    		// chunk may then trigger a check in the allocator which erroneously looks at
    		// unmapped summary memory and crashes.
    
    		// Figure out how many chunks are in a physical page, then align BaseChunkIdx
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 06 19:16:48 UTC 2021
    - 32.6K bytes
    - Viewed (0)
  8. docs/security/README.md

    ##### Figure 1 - Secure Channel construction
    
    ```
    plaintext   := chunk_0          ||       chunk_1          ||       chunk_2          ||       ...
                     |                         |                         |
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Feb 12 00:51:25 UTC 2022
    - 13.8K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

      private val Response.isChunked: Boolean
        get() = "chunked".equals(header("Transfer-Encoding"), ignoreCase = true)
    
      private val Request.isChunked: Boolean
        get() = "chunked".equals(header("Transfer-Encoding"), ignoreCase = true)
    
      /**
       * Received trailers. Null unless the response body uses chunked transfer-encoding and includes
       * trailers. Undefined until the end of the response body.
       */
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  10. tensorflow/cc/saved_model/fingerprinting_utils.cc

        return absl::FailedPreconditionError(
            absl::StrCat("Couldn't read ChunkMetadata from chunked proto.\n",
                         read_metadata.status().ToString()));
      }
      ChunkMetadata chunk_metadata = read_metadata.value();
    
      std::vector<ChunkInfo> chunks_info = std::vector<ChunkInfo>(
          chunk_metadata.chunks().begin(), chunk_metadata.chunks().end());
    
      FingerprintDef fingerprint_def;
      SavedModel saved_model;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 20 22:19:55 UTC 2024
    - 20.2K bytes
    - Viewed (0)
Back to top