clear buf before releasing

This commit is contained in:
zab2
2018-07-04 16:11:07 +00:00
parent 11e00ba9cb
commit 40b30979cd

View File

@ -471,6 +471,7 @@ class EventPumper implements Runnable {
* High-frequency path in thread.
*/
public static void releaseBuf(ByteBuffer buf) {
buf.clear();
_bufferCache.release(buf);
}