am e2c32e9f: If nothing is to be copied, return right away.
* commit 'e2c32e9f966cf9f2c9ed94bf0703344a2cca284b': If nothing is to be copied, return right away.
This commit is contained in:
@@ -135,6 +135,10 @@ size_t PageCache::releaseFromStart(size_t maxBytes) {
|
||||
void PageCache::copy(size_t from, void *data, size_t size) {
|
||||
LOGV("copy from %d size %d", from, size);
|
||||
|
||||
if (size == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
CHECK_LE(from + size, mTotalSize);
|
||||
|
||||
size_t offset = 0;
|
||||
|
||||
Reference in New Issue
Block a user