Skip to content
Snippets Groups Projects
Unverified Commit b00406c8 authored by Morph's avatar Morph Committed by GitHub
Browse files

Merge pull request #7788 from ameerj/stream-buffer-begin

buffer_cache: Reduce stream buffer allocations when expanding from the left
parents 8dea7fa1 f300a1d5
No related branches found
No related tags found
No related merge requests found
......@@ -1474,6 +1474,8 @@ typename BufferCache<P>::OverlapResult BufferCache<P>::ResolveOverlaps(VAddr cpu
// When this memory region has been joined a bunch of times, we assume it's being used
// as a stream buffer. Increase the size to skip constantly recreating buffers.
has_stream_leap = true;
begin -= PAGE_SIZE * 256;
cpu_addr = begin;
end += PAGE_SIZE * 256;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment