RFR: 8292022: Unary Plus Operator + and Shift Operators priority

GGGGGHT duke at openjdk.org
Mon Aug 8 06:30:36 UTC 2022


(capacity + capacity>>1) The result of this expression is still capacity. So I guess what the author thought at the time might be (capacity + (capacity >> 1)), see https://bugs.openjdk.org/projects/JDK/issues/JDK-8292022

-------------

Commit messages:
 - fix: modify bytebuffer object allocate capacity

Changes: https://git.openjdk.org/jdk/pull/9698/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=9698&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8292022
  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/9698.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/9698/head:pull/9698

PR: https://git.openjdk.org/jdk/pull/9698


More information about the compiler-dev mailing list