diff --git a/src/jdk.compiler/share/classes/com/sun/tools/javac/file/BaseFileManager.java b/src/jdk.compiler/share/classes/com/sun/tools/javac/file/BaseFileManager.java index 2ec3b7fe2fe..dc9516b7f6d 100644 --- a/src/jdk.compiler/share/classes/com/sun/tools/javac/file/BaseFileManager.java +++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/file/BaseFileManager.java @@ -432,7 +432,7 @@ public abstract class BaseFileManager implements JavaFileManager { ByteBuffer result = (cached != null && cached.capacity() >= capacity) ? cached.clear() - : ByteBuffer.allocate(capacity + capacity>>1); + : ByteBuffer.allocate(capacity); cached = null; return result; }