RFR: 8292022: Issues caused by Unary Plus Operator + and Shift Operators priority
GGGGGHT
duke at openjdk.org
Sat Aug 20 07:18:28 UTC 2022
On Fri, 19 Aug 2022 13:20:05 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
> I don't see a reason to over-allocate the 1.5x sized ByteBuffer here. So, if we just drop to ` `ByteBuffer.allocate(capacity)`, it would still resolve the problem, leave the current behavior as it is (obviates the need for deeper testing), and would make more sense anyway. Right?
Maybe so, but I think direct allocation of 1.5x size may reduce the number of allocations in some extreme cases.
-------------
PR: https://git.openjdk.org/jdk/pull/9698
More information about the compiler-dev
mailing list