RFR: 8247909: Improve PrimitiveConversions::cast using C++14 [v3]

Stefan Karlsson stefank at openjdk.java.net
Tue Sep 15 10:23:50 UTC 2020


On Tue, 15 Sep 2020 08:13:10 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

>> Please review this reimplementation of PrimitiveConversions::cast,
>> using facilities from C++14.  In particular, conversions involving
>> only integral values or integral and enum values are now constexpr.
>> Also using <type_traits> rather than HotSpot work-alikes.
>> 
>> Had to update zForwardingEntry.hpp because of a class no longer being
>> implicitly included.  Improved a friend declaration while in the
>> vicinity.
>> 
>> Testing
>> mach5 tier1
>
> Kim Barrett has updated the pull request incrementally with one additional commit since the last revision:
> 
>   fix implict dependency by test on integralConstant.hpp

Marked as reviewed by stefank (Reviewer).

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

PR: https://git.openjdk.java.net/jdk/pull/143


More information about the hotspot-dev mailing list