RFR: JDK-8299396: Remove metaprogramming/removeExtent.hpp [v2]

Kim Barrett kbarrett at openjdk.org
Thu Dec 29 07:27:50 UTC 2022


On Thu, 29 Dec 2022 02:58:27 GMT, Justin King <jcking at openjdk.org> wrote:

>> Code cleanup of pre-C++11 <type_traits> implementations.
>
> Justin King has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Remove related test
>   
>   Signed-off-by: Justin King <jcking at google.com>

Changes requested by kbarrett (Reviewer).

src/hotspot/share/gc/z/zSafeDelete.hpp line 35:

> 33: class ZSafeDeleteImpl {
> 34: private:
> 35:   typedef typename std::remove_extent<T>::type ItemT;

`using ItemT = std::remove_extent_t<T>;`
e.g. use the `_t` suffixed trait, and prefer type aliases.

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

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


More information about the hotspot-gc-dev mailing list