RFR 8215644: Clean up globalDefinitions_<compiler>.hpp
Kim Barrett
kim.barrett at oracle.com
Thu Dec 27 22:21:34 UTC 2018
> On Dec 20, 2018, at 11:58 AM, Harold David Seigel <harold.seigel at oracle.com> wrote:
>
> Hi,
>
> Please review this fix for JDK-8215644. The fix deletes old code and moves misplaced code as described in the bug.
>
> Open Webrev: http://cr.openjdk.java.net/~hseigel/bug_8215644/webrev/index.html
>
> JBS Bug: https://bugs.openjdk.java.net/browse/JDK-8215644
>
> The fix was regression tested by running Mach5 tiers 1 and 2 tests and builds on Linux-x64, Windows, and Mac OS X and by running JCK-12 Lang and VM tests on Linux-x64.
>
> Thanks, Harold
------------------------------------------------------------------------------
src/hotspot/share/utilities/globalDefinitions.hpp
1104 inline u2 build_u2_from( u1 c1, u1 c2 ) {
Other than the build_u2_from(u1* p) overload a few lines later, there
are no callers of this two-arg overload. So this one could be removed
by inlining the implementation into the one-arg overload.
Also, the comment describing these as building values using the
conventions used in class files has been lost.
But the best cleanup would be to also entirely remove build_u2_from()
and change its callers to instead call Bytes::get_Java_u2(). There
are 14 callers. Feel free to make that a separate cleanup RFE, if you
want to avoid expanding the scope of this change.
I note that you also removed this comment:
1131 // On the 386, this could be realized with a simple address cast.
which is good, since that comment seems to be just plain wrong.
------------------------------------------------------------------------------
More information about the hotspot-runtime-dev
mailing list