RFR: 8247909: Improve PrimitiveConversions::cast using C++14

David Holmes dholmes at openjdk.java.net
Mon Sep 14 02:34:52 UTC 2020


On Sun, 13 Sep 2020 07:27:13 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

Marked as reviewed by dholmes (Reviewer).

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

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


More information about the hotspot-dev mailing list