RFR 8074067: Cleanup in java.base/share/native/libjava/Bits.c

Ivan Gerasimov ivan.gerasimov at oracle.com
Sun Mar 1 15:20:49 UTC 2015


Hello everyone!

Code in the file Bits.c can be made a bit shorter:
First, we can remove updating the variables which aren't used:
  103         dstAddr += size;
  138         srcAddr += size;
... and alike.

Second, the 'size' variable may only be updated when 'length' becomes 
less than MBYTE.
The warning not to modify the code which has just been modified was also 
removed.

I've built jdk on all available platforms (both production and debug) to 
make sure the code is still compilable.

BUGURL: https://bugs.openjdk.java.net/browse/JDK-8074067
WEBREV: http://cr.openjdk.java.net/~igerasim/8074067/0/webrev/

Sincerely yours,
Ivan




More information about the core-libs-dev mailing list