409953 return buffer.slice() instead of buffer.asReadOnlyBuffer() in ResourceCache to avoid using inefficent path in BufferUtil.writeTo
This commit is contained in:
parent
d3b96328f9
commit
82b73c065f
|
@ -486,7 +486,7 @@ public class ResourceCache
|
|||
}
|
||||
if (buffer==null)
|
||||
return null;
|
||||
return buffer.asReadOnlyBuffer();
|
||||
return buffer.slice();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue