Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for heap_len (0.24 sec)

  1. src/cmd/link/internal/ld/outbuf.go

    		}
    		// See if our heap would grow to be too large, and if so, copy it to the end
    		// of the mmapped area.
    		if heapLen > maxOutBufHeapLen && out.copyHeap() {
    			heapPos -= heapLen
    			lenNeeded = heapPos + lenToWrite
    			heapLen = 0
    		}
    		out.heap = append(out.heap, make([]byte, lenNeeded-heapLen)...)
    	}
    	return heapPos, out.heap
    }
    
    func (out *OutBuf) SeekSet(p int64) {
    	out.off = p
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 17 19:51:29 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/outbuf_test.go

    	}
    }
    
    // TestWriteLoc ensures that the math surrounding writeLoc is correct.
    func TestWriteLoc(t *testing.T) {
    	tests := []struct {
    		bufLen          int
    		off             int64
    		heapLen         int
    		lenToWrite      int64
    		expectedHeapLen int
    		writePos        int64
    		addressInHeap   bool
    	}{
    		{100, 0, 0, 100, 0, 0, false},
    		{100, 100, 0, 100, 100, 0, true},
    		{10, 10, 0, 100, 100, 0, true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 08 20:03:01 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  3. src/internal/trace/traceviewer/static/trace_viewer_full.html

    a,i,n,r=e.dyn_tree,s=e.stat_desc.static_tree,o=e.stat_desc.has_stree,l=e.stat_desc.elems,h=-1;for(t.heap_len=0,t.heap_max=j,a=0;a<l;a++)0!==r[2*a]?(t.heap[++t.heap_len]=h=a,t.depth[a]=0):r[2*a+1]=0;for(;t.heap_len<2;)r[2*(n=t.heap[++t.heap_len]=h<2?++h:0)]=1,t.depth[n]=0,t.opt_len--,o&&(t.static_len-=s[2*n+1]);for(e.max_code=h,a=t.heap_len>>1;a>=1;a--)p(t,r,a);n=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],p(t,r,1),i=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=i,r[2*n]=r[2*a]+r[2*i],t.de...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:45:06 UTC 2023
    - 2.5M bytes
    - Viewed (1)
Back to top